Update pbs-zfs-daily.sh

Update before Upgrade
This commit is contained in:
Chriz
2024-11-27 13:31:53 +01:00
committed by GitHub
parent 9c3f499581
commit 152f4199ca

View File

@@ -47,7 +47,7 @@ scp ./90000_miyagi-$SOURCEHOSTNAME-$(hostname) $SOURCEHOST:/var/lib/check_mk_a
if [[ "$UPDATES" == "yes" ]]
then
apt dist-upgrade -y
apt update && apt dist-upgrade -y
else
echo no Updates configured - Consider updating more often!
@@ -108,7 +108,7 @@ scp /tmp/90000_checkpbs root@$SOURCEHOST:/var/lib/check_mk_agent/spool
if [[ "$UPDATES" == "yes" ]]
then
ssh $PBSHOST apt dist-upgrade -y
ssh $PBSHOST apt update && apt dist-upgrade -y
else
echo no Updates configured - Consider updating more often!