mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-26 01:15:53 +00:00
Refactor guardian-install.sh to simplify dependency installation and ensure DEPLOYMENT_MODE is set for frontend service
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user