summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-04-28 02:07:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-04-28 02:07:26 +0000
commit3875f8211d5b6d9f8b7317187cbe9f399f54041b (patch)
tree3e939382d8984a341a0e5173b8137383a5f0de2d /etc/inc/openvpn.inc
parent011c2678dd96c070395e53cf997d051329b753e6 (diff)
downloadpfsense-3875f8211d5b6d9f8b7317187cbe9f399f54041b.zip
pfsense-3875f8211d5b6d9f8b7317187cbe9f399f54041b.tar.gz
Add missing #!
Diffstat (limited to 'etc/inc/openvpn.inc')
-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