From c126a8cd664df5d79fa643deeeded4c8701d1183 Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 6 Nov 2026 10:54:04 +0300 Subject: [PATCH] fix(installer): nginx is enabled and restarted after its config is written restart_nginx only logged "systemctl enable/restart nginx.service": both calls had been commented out since the installer was added (2020). On RHEL and openSUSE nginx is not enabled after its install, so the panel was not served until someone started it; on Debian and Ubuntu nginx kept the default site until a reload. The installer now checks the config, enables nginx and restarts it, and stops if that fails. --- webvirtcloud.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/webvirtcloud.sh b/webvirtcloud.sh index 372840ee..60cb1402 100755 --- a/webvirtcloud.sh +++ b/webvirtcloud.sh @@ -355,10 +355,8 @@ set_hosts () { restart_nginx () { echo "* Setting Nginx to start on boot and starting Nginx." - log "systemctl enable nginx.service" - #systemctl enable nginx.service - log "systemctl restart nginx.service" - #systemctl restart nginx.service + # nginx is not enabled on RHEL and openSUSE, and Debian's runs the default site until a reload + nginx -t && systemctl enable nginx.service && systemctl restart nginx.service || exit 1 }