From 04abb9bc8b3a4f8cbd01e70877ebdde4fb60aa10 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 25 Aug 2015 10:10:01 +0200 Subject: Remove useless remount calls and other redundant stuff These are dealt with by install_package(), uninstall_package() and delete_package_xml() from pkg-utils.inc. --- config/vhosts/vhosts.inc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'config/vhosts') diff --git a/config/vhosts/vhosts.inc b/config/vhosts/vhosts.inc index cf2f97b8..7ac027b9 100644 --- a/config/vhosts/vhosts.inc +++ b/config/vhosts/vhosts.inc @@ -622,7 +622,6 @@ EOF; function vhosts_install_command() { global $config; - conf_mount_rw(); safe_mkdir("/usr/local/vhosts/"); write_rcfile(array( @@ -637,13 +636,9 @@ function vhosts_install_command() { function vhosts_deinstall_command() { - conf_mount_rw(); - stop_service("vhosts-http"); - unlink_if_exists("/usr/local/etc/rc.d/vhosts-http.sh"); exec("/bin/rm -f /usr/local/etc/rc.d/vhosts*"); exec("/bin/rm -f /var/etc/vhosts*"); exec("/bin/rm -rf /usr/local/www/packages/vhosts"); - conf_mount_ro(); } ?> -- cgit v1.2.3