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