Fix case sensitivity in Guardian paths across scripts
This commit is contained in:
parent
ed6f915b9f
commit
7a8f1aa0ff
@ -35,9 +35,9 @@ if check_for_gh_release "guardian" "HydroshieldMKII/Guardian" ; then
|
||||
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"
|
||||
cp "/opt/Guardian/backend/plex-guard.db" "/tmp/plex-guard.db.backup"
|
||||
cp "/opt/guardian/backend/plex-guard.db" "/tmp/plex-guard.db.backup"
|
||||
msg_ok "Database backed up"
|
||||
fi
|
||||
|
||||
@ -47,19 +47,19 @@ if check_for_gh_release "guardian" "HydroshieldMKII/Guardian" ; then
|
||||
|
||||
if [[ -f "/tmp/plex-guard.db.backup" ]] ; then
|
||||
msg_info "Restoring Database"
|
||||
cp "/tmp/plex-guard.db.backup" "/opt/Guardian/backend/plex-guard.db"
|
||||
cp "/tmp/plex-guard.db.backup" "/opt/guardian/backend/plex-guard.db"
|
||||
rm "/tmp/plex-guard.db.backup"
|
||||
msg_ok "Database restored"
|
||||
fi
|
||||
|
||||
msg_info "Updating Guardian"
|
||||
cd /opt/Guardian/backend
|
||||
cd /opt/guardian/backend
|
||||
$STD npm ci
|
||||
$STD npm run build
|
||||
|
||||
cd /opt/Guardian/frontend
|
||||
cd /opt/guardian/frontend
|
||||
$STD npm ci
|
||||
$STD DEPLOYMENT_MODE = standalone npm run build
|
||||
$STD DEPLOYMENT_MODE=standalone npm run build
|
||||
|
||||
msg_ok "Updated Guardian"
|
||||
|
||||
|
@ -24,13 +24,13 @@ fetch_and_deploy_gh_release "guardian" "HydroshieldMKII/Guardian" "tarball" "lat
|
||||
|
||||
|
||||
msg_info "Building backend"
|
||||
cd /opt/Guardian/backend
|
||||
cd /opt/guardian/backend
|
||||
$STD npm ci
|
||||
$STD npm run build
|
||||
msg_ok "Built backend"
|
||||
|
||||
msg_info "Building frontend"
|
||||
cd /opt/Guardian/frontend
|
||||
cd /opt/guardian/frontend
|
||||
$STD npm ci
|
||||
$STD DEPLOYMENT_MODE=standalone npm run build
|
||||
msg_ok "Built frontend"
|
||||
@ -41,7 +41,7 @@ cat <<EOF >/etc/systemd/system/guardian-backend.service
|
||||
Description=Guardian Backend
|
||||
After=network.target
|
||||
[Service]
|
||||
WorkingDirectory=/opt/Guardian/backend
|
||||
WorkingDirectory=/opt/guardian/backend
|
||||
ExecStart=/usr/bin/node dist/main.js
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
@ -55,7 +55,7 @@ Description=Guardian Frontend
|
||||
After=guardian-backend.service network.target
|
||||
Wants=guardian-backend.service
|
||||
[Service]
|
||||
WorkingDirectory=/opt/Guardian/frontend
|
||||
WorkingDirectory=/opt/guardian/frontend
|
||||
Environment=DEPLOYMENT_MODE=standalone
|
||||
ExecStart=/usr/bin/npm run start
|
||||
Restart=always
|
||||
|
Loading…
x
Reference in New Issue
Block a user