diff options
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |