mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-23 19:14:34 +02:00
Added basic Configuration files and skeleton scripts
This commit is contained in:
18
lib/utils.sh
Normal file
18
lib/utils.sh
Normal file
@ -0,0 +1,18 @@
|
||||
# CIS Debian 7 Hardening Utility functions
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Return if a package is installed
|
||||
# @param $1 package name
|
||||
#
|
||||
is_installed()
|
||||
{
|
||||
PKG_NAME=$1
|
||||
if `dpkg -s $PKG_NAME 2> /dev/null | grep -q '^Status: install '` ; then
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user