Added basic Configuration files and skeleton scripts

This commit is contained in:
thibault.dewailly
2016-04-01 09:32:17 +02:00
parent 754cf6fd1d
commit 9a5e962cd4
7 changed files with 127 additions and 0 deletions

18
lib/utils.sh Normal file
View 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
}