aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export/openvpn-client-export.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/openvpn-client-export/openvpn-client-export.inc')
-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) {