From 839d97cc8f7ff1ac86bc1b951db2c106fadf6535 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 25 Aug 2015 09:45:35 +0200 Subject: Remove useless remount calls and other redundant stuff All of these are dealt with by uninstall_package() and delete_package_xml() from pkg-utils.inc. --- config/openvpn-client-export/openvpn-client-export.inc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'config/openvpn-client-export') diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc index 963a2604..1d8512ae 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -62,18 +62,8 @@ 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(); } function openvpn_client_export_prefix($srvid, $usrid = null, $crtid = null) { -- cgit v1.2.3