edited for new comments

This commit is contained in:
amin
2026-05-25 17:42:44 +02:00
parent d945f8bc2b
commit 30ab7d682a
3 changed files with 23 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/AminGholizad/ProxmoxVED/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Amin Gholizad
# Author: [AminGholizad]
# License: MIT | https://github.com/AminGholizad/ProxmoxVED/raw/main/LICENSE
# Source: https://github.com/PanSalut/Koffan
@@ -35,10 +35,10 @@ function update_script() {
msg_ok "Stopped Service"
msg_info "Backing up Data"
cp -r /opt/koffan/data /opt/koffan_data_backup 2>/dev/null || true
cp -r /opt/koffan/data /opt/koffan_data_backup
msg_ok "Backed up Data"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "koffan" "PanSalut/Koffan"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "koffan" "PanSalut/Koffan" "tarball"
msg_info "Rebuilding Koffan"
cd /opt/koffan
@@ -46,7 +46,7 @@ function update_script() {
msg_ok "Rebuild Completed"
msg_info "Restoring Data"
cp -r /opt/koffan_data_backup/. /opt/koffan/data/ 2>/dev/null || true
cp -r /opt/koffan_data_backup/. /opt/koffan/data/
rm -rf /opt/koffan_data_backup
msg_ok "Restored Data"