Update guardian.sh
This commit is contained in:
parent
18c3b2979d
commit
660d8a21cb
@ -34,7 +34,6 @@ if check_for_gh_release "guardian" "HydroshieldMKII/Guardian" ; then
|
|||||||
systemctl stop guardian-backend guardian-frontend
|
systemctl stop guardian-backend guardian-frontend
|
||||||
msg_ok "Stopped Services"
|
msg_ok "Stopped Services"
|
||||||
|
|
||||||
|
|
||||||
if [[ -f "/opt/guardian/backend/plex-guard.db" ]] ; then
|
if [[ -f "/opt/guardian/backend/plex-guard.db" ]] ; then
|
||||||
msg_info "Saving Database"
|
msg_info "Saving Database"
|
||||||
cp "/opt/guardian/backend/plex-guard.db" "/tmp/plex-guard.db.backup"
|
cp "/opt/guardian/backend/plex-guard.db" "/tmp/plex-guard.db.backup"
|
||||||
@ -60,7 +59,6 @@ if check_for_gh_release "guardian" "HydroshieldMKII/Guardian" ; then
|
|||||||
cd /opt/guardian/frontend
|
cd /opt/guardian/frontend
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
$STD DEPLOYMENT_MODE=standalone npm run build
|
$STD DEPLOYMENT_MODE=standalone npm run build
|
||||||
|
|
||||||
msg_ok "Updated Guardian"
|
msg_ok "Updated Guardian"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user