diff options
author | doktornotor <notordoktor@gmail.com> | 2015-08-25 09:45:35 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-08-25 09:45:35 +0200 |
commit | 839d97cc8f7ff1ac86bc1b951db2c106fadf6535 (patch) | |
tree | 865c99f20a91da9a8adc6eb709f3f17f336fe375 | |
parent | dfaecb560997b2a078182cb65fb03e69bf5d35cf (diff) | |
download | pfsense-packages-839d97cc8f7ff1ac86bc1b951db2c106fadf6535.tar.gz pfsense-packages-839d97cc8f7ff1ac86bc1b951db2c106fadf6535.tar.bz2 pfsense-packages-839d97cc8f7ff1ac86bc1b951db2c106fadf6535.zip |
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.
-rwxr-xr-x | config/openvpn-client-export/openvpn-client-export.inc | 10 |
1 files changed, 0 insertions, 10 deletions
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) { |