fix dns changed on domain delete
This commit is contained in:
parent
67a3a59800
commit
cdc84a53e1
@ -113,10 +113,8 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
||||
}
|
||||
|
||||
private ShellProcessor createHiveDNSRemoveProcessor(String domName) {
|
||||
return new ShellProcessor("grep -v '\"pri." + domName + "\"' /etc/bind/named.pri-zones > /etc/bind/named.pri-zones.tmp" +
|
||||
" && mv /etc/bind/named.pri-zones.tmp /etc/bind/named.pri-zones" +
|
||||
" && rm -f /etc/bind/pri." + domName +
|
||||
" && invoke-rc.d bind9 reload");
|
||||
return new ShellProcessor("rm -f /etc/bind/pri." + domName +
|
||||
" && salt-call state.sls pacs");
|
||||
}
|
||||
|
||||
private Processor createMailinSetupProcessor(EntityManager em, Domain dom, Pac pac) throws ProcessorException {
|
||||
@ -323,7 +321,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
||||
" && mkdir " + homedir + "/doms.bak" +
|
||||
" && mv " + homedir + "/doms/" + domname + " " + homedir + "/doms.bak/" +
|
||||
" && chown -R " + username + ":" + username + " " + homedir + "/doms.bak" +
|
||||
" && salt-call state.sls pacs " +
|
||||
// " && salt-call state.sls pacs " +
|
||||
" && invoke-rc.d apache2 reload >/dev/null 2>&1");
|
||||
}
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user