Skip to content

Commit 7ea3df9

Browse files
committed
Fixed a error with the symlink creation during update.
1 parent 9587053 commit 7ea3df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ public function install_ispconfig()
611611
if ($dh = opendir($dir)) {
612612
while (($file = readdir($dh)) !== false) {
613613
if($file != '.' && $file != '..') {
614-
symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-enabled/'.$file);
614+
if(!is_link($install_dir.'/server/mods-enabled/'.$file)) symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-enabled/'.$file);
615615
}
616616
}
617617
closedir($dh);

0 commit comments

Comments
 (0)