Update pbs-zfs-daily.sh

System Updates optional
This commit is contained in:
Chriz
2024-06-22 11:37:11 +02:00
committed by GitHub
parent f76f554ecb
commit 88fe9c4c90

View File

@@ -84,8 +84,15 @@ scp /tmp/90000_checkpbs root@$SOURCEHOST:/var/lib/check_mk_agent/spool
#doing updates without regeret
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