From 3875f8211d5b6d9f8b7317187cbe9f399f54041b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 28 Apr 2008 02:07:26 +0000 Subject: Add missing #! --- etc/inc/openvpn.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc/openvpn.inc') 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"); -- cgit v1.1