fix: satisfy installer shellcheck
Docker Release / Check web and api (push) Waiting to run
Docker Release / Resolve release tag (push) Blocked by required conditions
Docker Release / Build and publish all-in-one (push) Blocked by required conditions
Docker Release / Build and publish api (push) Blocked by required conditions
Docker Release / Build and publish web (push) Blocked by required conditions
Docker Release / Build and publish dovecot (push) Blocked by required conditions
Docker Release / Build and publish postfix (push) Blocked by required conditions
Docker Release / Build and publish rspamd (push) Blocked by required conditions
Docker Release / Create GitHub release (push) Blocked by required conditions

This commit is contained in:
zxyszx
2026-08-12 16:17:38 +08:00
parent fc3a3462cf
commit ff5578368a
+3 -1
View File
@@ -1356,7 +1356,9 @@ do_restore_backup() {
rm -f "${NGINX_CONFIG}"
fi
rm -f "${nginx_backup}"
nginx -t >/dev/null 2>&1 && systemctl reload nginx >/dev/null 2>&1 || true
if nginx -t >/dev/null 2>&1; then
systemctl reload nginx >/dev/null 2>&1 || true
fi
fail "恢复失败,原始备份文件未修改;修复问题后可重新执行备份恢复。"
fi
rm -f "${nginx_backup}"