mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 13:37:02 +01:00
19 lines
265 B
Bash
19 lines
265 B
Bash
|
# 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
|
||
|
}
|
||
|
|
||
|
|