mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-23 06:12:54 +02:00
Standardize CT update backup handling (#15937)
This commit is contained in:
committed by
GitHub
parent
d8efbd04d8
commit
bd3e3bd5f9
+2
-7
@@ -34,16 +34,11 @@ function update_script() {
|
||||
systemctl stop teddycloud
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Creating backup"
|
||||
mv /opt/teddycloud /opt/teddycloud_bak
|
||||
msg_ok "Backup created"
|
||||
create_backup /opt/teddycloud/certs /opt/teddycloud/config /opt/teddycloud/data
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "teddycloud" "toniebox-reverse-engineering/teddycloud" "prebuild" "latest" "/opt/teddycloud" "teddycloud.amd64.release*.zip"
|
||||
|
||||
msg_info "Restoring data"
|
||||
cp -R /opt/teddycloud_bak/certs /opt/teddycloud_bak/config /opt/teddycloud_bak/data /opt/teddycloud
|
||||
rm -rf /opt/teddycloud_bak
|
||||
msg_ok "Data restored"
|
||||
restore_backup
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start teddycloud
|
||||
|
||||
Reference in New Issue
Block a user