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"