aboutsummaryrefslogtreecommitdiffstats
path: root/packages/openvpn-client-export
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-09-25 00:45:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-09-25 00:45:47 +0000
commit4a18e1c62f4a3e46dd3d56e6de63f61548807b34 (patch)
tree157bc3ca3a967007f2ea45495521eac7735c82bf /packages/openvpn-client-export
parentcd5dfb4bde906e15555a42601d0129c4c4ae1bf7 (diff)
downloadpfsense-packages-4a18e1c62f4a3e46dd3d56e6de63f61548807b34.tar.gz
pfsense-packages-4a18e1c62f4a3e46dd3d56e6de63f61548807b34.tar.bz2
pfsense-packages-4a18e1c62f4a3e46dd3d56e6de63f61548807b34.zip
Create /usr/local/share/openvpn if it does exist
Diffstat (limited to 'packages/openvpn-client-export')
-rwxr-xr-xpackages/openvpn-client-export/openvpn-client-export.inc3
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}");