aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-28 09:01:07 -0300
committerRenato Botelho <renato@netgate.com>2015-08-28 09:01:07 -0300
commit3977f59b180791156208cd6865eef5cae734f044 (patch)
tree85076ce952355cf3894a5b3f52726439445f0656 /config/openvpn-client-export
parent66dad7feacac607560844228c0cd58537bc1a994 (diff)
parent3bdbee31d112b473ce66bcd321cdcd706dc17131 (diff)
downloadpfsense-packages-3977f59b180791156208cd6865eef5cae734f044.tar.gz
pfsense-packages-3977f59b180791156208cd6865eef5cae734f044.tar.bz2
pfsense-packages-3977f59b180791156208cd6865eef5cae734f044.zip
Merge pull request #1024 from doktornotor/patch-4
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc13
1 files changed, 1 insertions, 12 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc
index 963a2604..4dbc7302 100755
--- a/config/openvpn-client-export/openvpn-client-export.inc
+++ b/config/openvpn-client-export/openvpn-client-export.inc
@@ -62,18 +62,7 @@ function openvpn_client_export_install() {
}
function openvpn_client_export_deinstall() {
- global $current_openvpn_version;
- conf_mount_rw();
- $phpfile = "vpn_openvpn_export.php";
- $phpfile2 = "vpn_openvpn_export_shared.php";
- $ovpndir = "/usr/local/share/openvpn";
- $workdir = "{$ovpndir}/client-export";
-
- unlink_if_exists("/usr/local/www/{$phpfile}");
- unlink_if_exists("/usr/local/www/{$phpfile2}");
- unlink_if_exists("/usr/local/pkg/openvpn-client-export-{$current_openvpn_version}.tgz");
- exec("/bin/rm -r {$workdir}");
- conf_mount_ro();
+ exec("/bin/rm -r /usr/local/share/openvpn/client-export");
}
function openvpn_client_export_prefix($srvid, $usrid = null, $crtid = null) {