From 88fe9c4c90c29b6fda098765573e8b86d8a431b8 Mon Sep 17 00:00:00 2001 From: Chriz Date: Sat, 22 Jun 2024 11:37:11 +0200 Subject: [PATCH] Update pbs-zfs-daily.sh System Updates optional --- pbs-zfs-daily.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pbs-zfs-daily.sh b/pbs-zfs-daily.sh index 5a074e1..82cbccc 100644 --- a/pbs-zfs-daily.sh +++ b/pbs-zfs-daily.sh @@ -84,8 +84,15 @@ scp /tmp/90000_checkpbs root@$SOURCEHOST:/var/lib/check_mk_agent/spool #doing updates without regeret -apt dist-upgrade -y -ssh $PBSHOST apt dist-upgrade -y +if [[ "$UPDATES" == "yes" ]] +then + apt dist-upgrade -y + ssh $PBSHOST apt dist-upgrade -y + else + echo no Updates configured - Consider updating more often! + +fi + if [[ "$SHUTDOWN" == "yes" ]] then