From b4646fbd78a52193f61ca50559c1ca76891f2a84 Mon Sep 17 00:00:00 2001 From: HydroshieldMKII Date: Tue, 30 Sep 2025 17:25:41 -0400 Subject: [PATCH] Refactor guardian-install.sh to simplify dependency installation and ensure DEPLOYMENT_MODE is set for frontend service --- install/guardian-install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install/guardian-install.sh b/install/guardian-install.sh index eb314f21..ad623502 100644 --- a/install/guardian-install.sh +++ b/install/guardian-install.sh @@ -16,14 +16,11 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ git \ + nodejs \ + npm \ sqlite3 \ unzip \ - curl \ - ca-certificates \ - gnupg - -curl -fsSL https://deb.nodesource.com/setup_24.x | bash - -$STD apt-get install -y nodejs + curl msg_ok "Installed Dependencies" msg_info "Setup Guardian" @@ -77,6 +74,7 @@ Wants=guardian-backend.service [Service] WorkingDirectory=/opt/Guardian/frontend +Environment=DEPLOYMENT_MODE=standalone ExecStart=/usr/bin/npm run start Restart=always RestartSec=3