spliit: address review feedback

- Clear stale backup before creating it, so failed upgrades leave the
  backup in place for recovery
- Drop stray blank line in install script
This commit is contained in:
A
2026-05-18 14:33:42 +02:00
parent 3334894f39
commit ad7773df18
2 changed files with 1 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ function update_script() {
msg_ok "Stopped Service"
msg_info "Backing up Configuration"
rm -f /opt/spliit.env.bak
cp /opt/spliit/.env /opt/spliit.env.bak
msg_ok "Backed up Configuration"
@@ -42,7 +43,6 @@ function update_script() {
msg_info "Restoring Configuration"
cp /opt/spliit.env.bak /opt/spliit/.env
rm -f /opt/spliit.env.bak
msg_ok "Restored Configuration"
msg_info "Building Application"

View File

@@ -22,7 +22,6 @@ msg_ok "Installed Dependencies"
PG_VERSION="16" setup_postgresql
PG_DB_NAME="spliit" PG_DB_USER="spliit" setup_postgresql_db
NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "spliit" "spliit-app/spliit" "tarball"
msg_info "Configuring Application"