diff --git a/script/check/host/all/system_is_up_to_date.check.sh b/script/check/host/all/system_is_up_to_date.check.sh new file mode 100755 index 0000000..a64e262 --- /dev/null +++ b/script/check/host/all/system_is_up_to_date.check.sh @@ -0,0 +1,6 @@ +#/bin/bash + +[ "$(apt-get -s -o Debug::NoLocking=true upgrade | grep -c -E '^Inst')" = "0" ] \ + && exit 0 + +exit 1