miyagi-backup.sh aktualisiert
fix apt updates
This commit is contained in:
+6
-4
@@ -171,10 +171,12 @@ run_zsync() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
run_updates() {
|
run_remote_updates() {
|
||||||
log "Running updates..."
|
if [[ "$UPDATES" == "yes" ]]; then
|
||||||
apt update && apt dist-upgrade -y
|
ssh "$PBSHOST" apt update && apt dist-upgrade -y
|
||||||
apt autopurge -y
|
else
|
||||||
|
log "Remote updates disabled"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
run_remote_updates() {
|
run_remote_updates() {
|
||||||
|
|||||||
Reference in New Issue
Block a user