diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-04-28 02:07:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-04-28 02:07:26 +0000 |
commit | 3875f8211d5b6d9f8b7317187cbe9f399f54041b (patch) | |
tree | 3e939382d8984a341a0e5173b8137383a5f0de2d | |
parent | 011c2678dd96c070395e53cf997d051329b753e6 (diff) | |
download | pfsense-3875f8211d5b6d9f8b7317187cbe9f399f54041b.zip pfsense-3875f8211d5b6d9f8b7317187cbe9f399f54041b.tar.gz |
Add missing #!
-rw-r--r-- | etc/inc/openvpn.inc | 4 |
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"); |