From 65ff6cf9e23e3bfcc2216862a505b149b1d503de Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 29 Jun 2025 01:20:23 +0200 Subject: [PATCH] miyagi-backup.sh aktualisiert fix apt updates --- miyagi-backup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/miyagi-backup.sh b/miyagi-backup.sh index dd0e64b..f794f50 100644 --- a/miyagi-backup.sh +++ b/miyagi-backup.sh @@ -171,10 +171,12 @@ run_zsync() { fi } -run_updates() { - log "Running updates..." - apt update && apt dist-upgrade -y - apt autopurge -y +run_remote_updates() { + if [[ "$UPDATES" == "yes" ]]; then + ssh "$PBSHOST" apt update && apt dist-upgrade -y + else + log "Remote updates disabled" + fi } run_remote_updates() {