mirror of
https://github.com/m8tin/cis.git
synced 2026-04-02 11:01:29 +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