cloudron-support: reload nginx instead of active

This commit is contained in:
Girish Ramakrishnan
2025-04-13 10:39:25 +02:00
parent ac23dda8db
commit 689cf3171d

View File

@@ -295,7 +295,8 @@ function check_dashboard_cert() {
function check_nginx() {
local -r dashboard_domain=$(mysql -NB -uroot -ppassword -e "SELECT value FROM box.settings WHERE name='dashboard_domain'" 2>/dev/null)
if ! systemctl is-active -q nginx; then
# it is possible nginx is running but can't be restarted
if ! systemctl reload -q nginx; then
fail "nginx is down. Removing extraneous dashboard domain configs ..."
# we had a bug where old dashboard domain config file was kept around