From ccbc4bf7401170888c2b39a6b3c80895b3ac400b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 28 Apr 2008 01:54:49 +0000 Subject: Make script executable. --- etc/inc/openvpn.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/inc/openvpn.inc') diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 2f180d5..6d25c3b 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -312,6 +312,7 @@ function openvpn_server_create_cert($mode, $id) { fwrite($fd, "$easyrsapath/pkitool --batch --server server \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"); $config['installedpackages']["openvpn$mode"]['config'][$id]['server.key'] = file_get_contents("$ovpncapath/$caname/server.key"); $config['installedpackages']["openvpn$mode"]['config'][$id]['server.crt'] = file_get_contents("$ovpncapath/$caname/server.crt"); -- cgit v1.1