make domain.delete more robust
This commit is contained in:
parent
d72bca4516
commit
ce55f33d79
@ -312,9 +312,9 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
||||
int level = domName.split("\\.").length;
|
||||
String linkPrefix = Integer.toString(100 - level);
|
||||
Processor vhostDelProcessor =
|
||||
new ShellProcessor("rm /home/doms/" + domName +
|
||||
" && rm /etc/apache2/sites-enabled/" + linkPrefix + "-" + domName +
|
||||
" && rm /etc/apache2/sites-available/" + domName +
|
||||
new ShellProcessor("rm -f /home/doms/" + domName +
|
||||
" && rm -f /etc/apache2/sites-enabled/" + linkPrefix + "-" + domName +
|
||||
" && rm -f /etc/apache2/sites-available/" + domName +
|
||||
" && rm -rf " + dom.getUser().getHomedir() + "/doms/" + domName +
|
||||
" && invoke-rc.d apache2 reload >/dev/null 2>&1");
|
||||
return vhostDelProcessor;
|
||||
|
Loading…
Reference in New Issue
Block a user