fix pac-domain migration
This commit is contained in:
commit
47cb523cfb
@ -392,18 +392,20 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
||||
}
|
||||
processor.appendProcessor(
|
||||
new ShellProcessor("test -L " + domDir + "/htdocs" +
|
||||
" && $( stat -c '%N' " + domDir + "/htdocs |sed -e\"s/[\\`']//g\" |cut -d ' ' -f 3 ) = web-ssl " +
|
||||
" && test $( stat -c '%N' " + domDir + "/htdocs |sed -e\"s/[\\`']//g\" |cut -d ' ' -f 3 ) = web-ssl " +
|
||||
" && cd " + domDir +
|
||||
" && rm " + domDir + "/htdocs" +
|
||||
" && ln -sf htdocs-ssl htdocs" +
|
||||
" && chown -h " + pacName + ":" + pacName + " " + domDir + "/htdocs"));
|
||||
" && chown -h " + pacName + ":" + pacName + " " + domDir + "/htdocs" +
|
||||
" || echo 'link htdocs not found'"));
|
||||
processor.appendProcessor(
|
||||
new ShellProcessor("test -L " + domDir + "/htdocs-ssl" +
|
||||
" && $( stat -c '%N' " + domDir + "/htdocs-ssl |sed -e\"s/[\\`']//g\" |cut -d ' ' -f 3 ) = web " +
|
||||
" && test $( stat -c '%N' " + domDir + "/htdocs-ssl |sed -e\"s/[\\`']//g\" |cut -d ' ' -f 3 ) = web " +
|
||||
" && cd " + domDir +
|
||||
" && rm " + domDir + "/htdocs-ssl" +
|
||||
" && ln -sf htdocs htdocs-ssl" +
|
||||
" && chown -h " + pacName + ":" + pacName + " " + domDir + "/htdocs-ssl"));
|
||||
" && chown -h " + pacName + ":" + pacName + " " + domDir + "/htdocs-ssl" +
|
||||
" || echo 'link htdocs-ssl not found'"));
|
||||
return processor;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user