mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-06 21:29:00 +02:00
Refactor (#15096)
This commit is contained in:
1 parent
4a09cac506
commit
f37bf50a47
21 files changed
+73
-184
No files matched your search
+2
-7
@@ -35,16 +35,11 @@ function update_script() {
|
||||
systemctl stop certimate
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing up Data"
|
||||
cp -r /opt/certimate/pb_data /opt/certimate_pb_data_backup
|
||||
msg_ok "Backed up Data"
|
||||
create_backup /opt/certimate/pb_data
|
||||
|
||||
fetch_and_deploy_gh_release "certimate" "certimate-go/certimate" "prebuild" "latest" "/opt/certimate" "certimate_*_linux_amd64.zip"
|
||||
|
||||
msg_info "Restoring Data"
|
||||
cp -r /opt/certimate_pb_data_backup/. /opt/certimate/pb_data
|
||||
rm -rf /opt/certimate_pb_data_backup
|
||||
msg_ok "Restored Data"
|
||||
restore_backup
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start certimate
|
||||
|
||||
Reference in new issue
Block a user