mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-23 14:22:53 +02:00
Standardize CT update backup handling (#15937)
This commit is contained in:
committed by
GitHub
parent
d8efbd04d8
commit
bd3e3bd5f9
+2
-7
@@ -35,16 +35,11 @@ function update_script() {
|
||||
systemctl stop spliit
|
||||
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"
|
||||
create_backup /opt/spliit/.env
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "spliit" "spliit-app/spliit" "tarball"
|
||||
|
||||
msg_info "Restoring Configuration"
|
||||
cp /opt/spliit.env.bak /opt/spliit/.env
|
||||
msg_ok "Restored Configuration"
|
||||
restore_backup
|
||||
|
||||
msg_info "Building Application"
|
||||
cd /opt/spliit
|
||||
|
||||
Reference in New Issue
Block a user