From 7ea3df9a2c436e6ab87756c52cd8548c50baa63e Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 08 Jan 2008 10:36:13 -0500 Subject: [PATCH] Fixed a error with the symlink creation during update. --- install/lib/installer_base.lib.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index cd85e92..55328bf 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -611,7 +611,7 @@ if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if($file != '.' && $file != '..') { - symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-enabled/'.$file); + if(!is_link($install_dir.'/server/mods-enabled/'.$file)) symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-enabled/'.$file); } } closedir($dh); -- Gitblit v1.9.1