Skip to content
Snippets Groups Projects
Commit 409a6679 authored by tbrehm's avatar tbrehm
Browse files

Fixed: symlinks not updated when a site is moved.

parent 99cb22d7
No related branches found
No related tags found
No related merge requests found
......@@ -332,8 +332,8 @@ class apache2_plugin {
$tmp_symlink = str_replace("[website_domain]",$data["old"]["domain"],$tmp_symlink);
// Remove trailing slash
if(substr($tmp_symlink, -1, 1) == '/') $tmp_symlink = substr($tmp_symlink, 0, -1);
// create the symlinks, if not exist
if(!is_link($tmp_symlink)) {
// remove the symlinks, if not exist
if(is_link($tmp_symlink)) {
exec("rm -f ".escapeshellcmd($tmp_symlink));
$app->log("Removed Symlink: rm -f ".$tmp_symlink,LOGLEVEL_DEBUG);
}
......
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