Skip to content

Commit 409a667

Browse files
committed
Fixed: symlinks not updated when a site is moved.
1 parent 99cb22d commit 409a667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ function update($event_name,$data) {
332332
$tmp_symlink = str_replace("[website_domain]",$data["old"]["domain"],$tmp_symlink);
333333
// Remove trailing slash
334334
if(substr($tmp_symlink, -1, 1) == '/') $tmp_symlink = substr($tmp_symlink, 0, -1);
335-
// create the symlinks, if not exist
336-
if(!is_link($tmp_symlink)) {
335+
// remove the symlinks, if not exist
336+
if(is_link($tmp_symlink)) {
337337
exec("rm -f ".escapeshellcmd($tmp_symlink));
338338
$app->log("Removed Symlink: rm -f ".$tmp_symlink,LOGLEVEL_DEBUG);
339339
}

0 commit comments

Comments
 (0)