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:
@@ -35,6 +35,7 @@ function update_script() {
|
|||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
msg_info "Backing up Configuration"
|
msg_info "Backing up Configuration"
|
||||||
|
rm -f /opt/spliit.env.bak
|
||||||
cp /opt/spliit/.env /opt/spliit.env.bak
|
cp /opt/spliit/.env /opt/spliit.env.bak
|
||||||
msg_ok "Backed up Configuration"
|
msg_ok "Backed up Configuration"
|
||||||
|
|
||||||
@@ -42,7 +43,6 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Restoring Configuration"
|
msg_info "Restoring Configuration"
|
||||||
cp /opt/spliit.env.bak /opt/spliit/.env
|
cp /opt/spliit.env.bak /opt/spliit/.env
|
||||||
rm -f /opt/spliit.env.bak
|
|
||||||
msg_ok "Restored Configuration"
|
msg_ok "Restored Configuration"
|
||||||
|
|
||||||
msg_info "Building Application"
|
msg_info "Building Application"
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ msg_ok "Installed Dependencies"
|
|||||||
PG_VERSION="16" setup_postgresql
|
PG_VERSION="16" setup_postgresql
|
||||||
PG_DB_NAME="spliit" PG_DB_USER="spliit" setup_postgresql_db
|
PG_DB_NAME="spliit" PG_DB_USER="spliit" setup_postgresql_db
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "spliit" "spliit-app/spliit" "tarball"
|
fetch_and_deploy_gh_release "spliit" "spliit-app/spliit" "tarball"
|
||||||
|
|
||||||
msg_info "Configuring Application"
|
msg_info "Configuring Application"
|
||||||
|
|||||||
Reference in New Issue
Block a user