move pac-domain-data to temp dir, salt-call

This commit is contained in:
Peter Hormanns 2019-10-23 16:47:43 +02:00
parent 79d1d5110b
commit 1447233225

View File

@ -365,7 +365,10 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
" && rm -f /etc/apache2/pems-generated/" + domname + ".crt" +
" && rm -f /etc/apache2/pems-generated/" + domname + ".key" +
" && rm -f /etc/apache2/pems-generated/" + domname + ".chain" +
" && chown -R " + username + ":" + username + " " + homedir + "/doms/" + domname +
" && mkdir " + homedir + "/doms.bak" +
" && mv " + homedir + "/doms/" + domname + " " + homedir + "/doms.bak/" +
" && chown -R " + username + ":" + username + " " + homedir + "/doms.bak" +
" && salt-call state.sls pacs " +
" && invoke-rc.d apache2 reload >/dev/null 2>&1");
}
return