Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fix(install): restore nginx reload-or-start fallback broken by shellcheck fix

Pouzor57829d88e5e6
diff --git a/scripts/lxc-install.sh b/scripts/lxc-install.sh
index 9a9c00a..1eed19a 100755
--- a/scripts/lxc-install.sh
+++ b/scripts/lxc-install.sh
@@ -122,11 +122,8 @@ sed \
ln -sf /etc/nginx/sites-available/homelable /etc/nginx/sites-enabled/homelable
rm -f /etc/nginx/sites-enabled/default
-if nginx -t; then
- systemctl reload nginx
-else
- systemctl start nginx
-fi
+nginx -t
+systemctl reload nginx || systemctl start nginx
# ── Enable & start ────────────────────────────────────────────────────────────
systemctl daemon-reload