From 4a18e1c62f4a3e46dd3d56e6de63f61548807b34 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 25 Sep 2008 00:45:47 +0000 Subject: Create /usr/local/share/openvpn if it does exist --- packages/openvpn-client-export/openvpn-client-export.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages') 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}"); -- cgit v1.2.3