Respect Selected Webserver Mode

This commit is contained in:
earnolmartin 2023-10-23 16:35:03 -06:00
parent 372edce6ca
commit f0f7475dc3

View file

@ -1003,6 +1003,7 @@ function restartDaemons(){ # by earnolmartin@gmail.com
# Restart apache2 daemon
manageService "apache2" "restart"
if [ "$syncDomainsPostInstall" = true ]; then
manageService "apache2" "stop"
manageService "nginx" "restart"
managePHPFPMService "stop"
managePHPFPMService "start"
@ -3429,8 +3430,10 @@ writeOutVersionInfo
# Use systemd services if systemd is present
daemonUseSystemd
# Syncdomains if needed
syncDomainsEHCP
if [ "$webserver" == "nginx" ]; then
setWebServerModeToNginx
syncDomainsPostInstall=true
fi
# Enable postfix submission port by default
postfixEnableSubmissionPortByDefault
@ -3454,6 +3457,9 @@ installPipPackages
# Inform installation is complete
postInstallInformation
# Syncdomains if needed
syncDomainsEHCP
# Run final cleanup
finalCleanup