From ba379320de2251896062ff8ae1022b72bd29b52a Mon Sep 17 00:00:00 2001 From: m8in Date: Wed, 1 Apr 2026 07:40:10 +0200 Subject: [PATCH] Check system is up to date --- script/check/host/all/system_is_up_to_date.check.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 script/check/host/all/system_is_up_to_date.check.sh 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