diff options
-rwxr-xr-x | packages/openvpn-client-export/openvpn-client-export.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/openvpn-client-export/openvpn-client-export.inc b/packages/openvpn-client-export/openvpn-client-export.inc index b760aff9..8608f92a 100755 --- a/packages/openvpn-client-export/openvpn-client-export.inc +++ b/packages/openvpn-client-export/openvpn-client-export.inc @@ -37,6 +37,9 @@ function openvpn_client_export_install() { $ovpndir = "/usr/local/share/openvpn"; $workdir = "{$ovpndir}/client-export"; + if(is_dir("/usr/local/share/openvpn")) + mkdir("/usr/local/share/openvpn"); + exec("/usr/bin/tar zxf {$tarpath} -C {$ovpndir}"); unlink($tarpath); rename("{$workdir}/{$phpfile}", "/usr/local/www/{$phpfile}"); |