Respect Selected Webserver Mode
This commit is contained in:
parent
372edce6ca
commit
f0f7475dc3
1 changed files with 8 additions and 2 deletions
|
@ -1003,6 +1003,7 @@ function restartDaemons(){ # by earnolmartin@gmail.com
|
||||||
# Restart apache2 daemon
|
# Restart apache2 daemon
|
||||||
manageService "apache2" "restart"
|
manageService "apache2" "restart"
|
||||||
if [ "$syncDomainsPostInstall" = true ]; then
|
if [ "$syncDomainsPostInstall" = true ]; then
|
||||||
|
manageService "apache2" "stop"
|
||||||
manageService "nginx" "restart"
|
manageService "nginx" "restart"
|
||||||
managePHPFPMService "stop"
|
managePHPFPMService "stop"
|
||||||
managePHPFPMService "start"
|
managePHPFPMService "start"
|
||||||
|
@ -3429,8 +3430,10 @@ writeOutVersionInfo
|
||||||
# Use systemd services if systemd is present
|
# Use systemd services if systemd is present
|
||||||
daemonUseSystemd
|
daemonUseSystemd
|
||||||
|
|
||||||
# Syncdomains if needed
|
if [ "$webserver" == "nginx" ]; then
|
||||||
syncDomainsEHCP
|
setWebServerModeToNginx
|
||||||
|
syncDomainsPostInstall=true
|
||||||
|
fi
|
||||||
|
|
||||||
# Enable postfix submission port by default
|
# Enable postfix submission port by default
|
||||||
postfixEnableSubmissionPortByDefault
|
postfixEnableSubmissionPortByDefault
|
||||||
|
@ -3454,6 +3457,9 @@ installPipPackages
|
||||||
# Inform installation is complete
|
# Inform installation is complete
|
||||||
postInstallInformation
|
postInstallInformation
|
||||||
|
|
||||||
|
# Syncdomains if needed
|
||||||
|
syncDomainsEHCP
|
||||||
|
|
||||||
# Run final cleanup
|
# Run final cleanup
|
||||||
finalCleanup
|
finalCleanup
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue