Skip to content
Snippets Groups Projects
Commit 8d390a43 authored by tbrehm's avatar tbrehm
Browse files

make sure the symlink with the old name "ispconfig.vhost" is removed before...

make sure the symlink with the old name "ispconfig.vhost" is removed before the new one with the name 000-ispconfig.vhost is created.
parent 1a14f4d8
No related branches found
No related tags found
No related merge requests found
......@@ -837,6 +837,7 @@ class installer_base {
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if($this->install_ispconfig_interface == true) {
if(!@is_link("$vhost_conf_enabled_dir/ispconfig.vhost")) unlink("$vhost_conf_enabled_dir/ispconfig.vhost");
if(!@is_link("$vhost_conf_enabled_dir/000-ispconfig.vhost")) {
exec("ln -s $vhost_conf_dir/ispconfig.vhost $vhost_conf_enabled_dir/000-ispconfig.vhost");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment