mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 14:25:53 +00:00
PatchMon: restore env files before DB operations
This commit is contained in:
@@ -56,9 +56,9 @@ function update_script() {
|
||||
$STD npm install --include=dev --no-audit --no-fund --no-save --ignore-scripts
|
||||
$STD npm run build
|
||||
cd /opt/patchmon/backend
|
||||
$STD npx prisma migrate deploy
|
||||
mv /opt/backend.env /opt/patchmon/backend/.env
|
||||
mv /opt/frontend.env /opt/patchmon/frontend/.env
|
||||
$STD npx prisma migrate deploy
|
||||
msg_ok "Updated ${APP}"
|
||||
|
||||
msg_info "Starting $APP"
|
||||
|
||||
Reference in New Issue
Block a user