overwrite existing link on domain update

This commit is contained in:
Peter Hormanns 2012-09-20 16:20:01 +02:00
parent 0cacd7306e
commit 8855708fd0

View File

@ -288,7 +288,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
);
}
domDirsProcessor.appendProcessor(
new ShellProcessor("ln -s " + domainDir + " /home/doms/ && " +
new ShellProcessor("ln -s -f " + domainDir + " /home/doms/ && " +
"chown --no-dereference " + userName + ":httpd /home/doms/" + domName
+ " && " + "chown " + userName + ":httpd /home/doms/" + domName + "/")
);