summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/openvpn.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index aaf650a..28fd79f 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -308,11 +308,11 @@ function openvpn_server_create_cert($mode, $id) {
$easyrsapath = $g['easyrsapath'];
config_lock();
$fd = fopen($ovpncapath . "/RUNME_2ND", "w");
- fwrite($fd, "/bin/tcsh\n");
+ fwrite($fd, "#!/bin/tcsh\n");
fwrite($fd, "cd $ovpncapath \n");
fwrite($fd, "source $ovpncapath/$caname/vars \n");
fwrite($fd, "$easyrsapath/pkitool --batch --server server \n");
- fwrite($fd, "openssl dhparam -out $ovpncapath/$caname/dh_params.dh $cakeysize \n");
+ fwrite($fd, "openssl dhparam -out $ovpncapath/$caname/dh_params.dh $cakeysize \n");
fclose($fd);
system("/bin/chmod a+rx $ovpncapath/RUNME_2ND");
mwexec("/bin/tcsh $ovpncapath/RUNME_2ND");
OpenPOWER on IntegriCloud