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
|
#doing updates without regeret
|
||||||
|
|
||||||
|
|
||||||
apt dist-upgrade -y
|
if [[ "$UPDATES" == "yes" ]]
|
||||||
ssh $PBSHOST apt dist-upgrade -y
|
then
|
||||||
|
apt dist-upgrade -y
|
||||||
|
ssh $PBSHOST apt dist-upgrade -y
|
||||||
|
else
|
||||||
|
echo no Updates configured - Consider updating more often!
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ "$SHUTDOWN" == "yes" ]]
|
if [[ "$SHUTDOWN" == "yes" ]]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user