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