mirror of
https://github.com/bashclub/miyagi-pbs-zfs.git
synced 2025-12-06 06:28:43 +00:00
Update pbs-zfs-daily.sh
Update before Upgrade
This commit is contained in:
@@ -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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user