Fix openvpn error (need to use the proper local path really)

This commit is contained in:
John Crisp
2020-03-04 11:15:46 +01:00
parent 42c1fc4ca1
commit f55c1d542b

View File

@@ -655,7 +655,7 @@ EOS;
print '<p><strong>Creating a TLS authentication key used by OpenVPN.<br>'; print '<p><strong>Creating a TLS authentication key used by OpenVPN.<br>';
print "Saving to $store_dir/takey.pem.</strong><br>"; print "Saving to $store_dir/takey.pem.</strong><br>";
$cmd = $command . " --genkey --secret '$config[private_dir]/takey.pem'"; $cmd = "openvpn --genkey --secret '$config[private_dir]/takey.pem'";
print $cmd.'<br>'; print $cmd.'<br>';
flush(); flush();
flush_exec($cmd); flush_exec($cmd);