mirror of
https://github.com/m8tin/cis.git
synced 2026-04-02 19:01:30 +02:00
Check system is up to date
This commit is contained in:
6
script/check/host/all/system_is_up_to_date.check.sh
Executable file
6
script/check/host/all/system_is_up_to_date.check.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#/bin/bash
|
||||
|
||||
[ "$(apt-get -s -o Debug::NoLocking=true upgrade | grep -c -E '^Inst')" = "0" ] \
|
||||
&& exit 0
|
||||
|
||||
exit 1
|
||||
Reference in New Issue
Block a user