Refactor build messages in guardian-install.sh for consistency

This commit is contained in:
HydroshieldMKII 2025-10-01 09:36:16 -04:00
parent 8d44bed6c5
commit 18c3b2979d

View File

@ -23,18 +23,16 @@ msg_info "Setup Guardian"
fetch_and_deploy_gh_release "guardian" "HydroshieldMKII/Guardian" "tarball" "latest" "/opt/guardian" fetch_and_deploy_gh_release "guardian" "HydroshieldMKII/Guardian" "tarball" "latest" "/opt/guardian"
msg_info "Building backend" msg_info "Building App"
cd /opt/guardian/backend cd /opt/guardian/backend
$STD npm ci $STD npm ci
$STD npm run build $STD npm run build
msg_ok "Built backend"
msg_info "Building frontend"
cd /opt/guardian/frontend cd /opt/guardian/frontend
$STD npm ci $STD npm ci
export DEPLOYMENT_MODE=standalone export DEPLOYMENT_MODE=standalone
$STD npm run build $STD npm run build
msg_ok "Built frontend" msg_ok "Built App"
msg_info "Creating Services" msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/guardian-backend.service cat <<EOF >/etc/systemd/system/guardian-backend.service