Skip to content

Commit 8d390a4

Browse files
committed
make sure the symlink with the old name "ispconfig.vhost" is removed before the new one with the name 000-ispconfig.vhost is created.
1 parent 1a14f4d commit 8d390a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,7 @@ public function install_ispconfig()
837837
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
838838
//* and create the symlink
839839
if($this->install_ispconfig_interface == true) {
840+
if(!@is_link("$vhost_conf_enabled_dir/ispconfig.vhost")) unlink("$vhost_conf_enabled_dir/ispconfig.vhost");
840841
if(!@is_link("$vhost_conf_enabled_dir/000-ispconfig.vhost")) {
841842
exec("ln -s $vhost_conf_dir/ispconfig.vhost $vhost_conf_enabled_dir/000-ispconfig.vhost");
842843
}

0 commit comments

Comments
 (0)