Tidying
This commit is contained in:
parent
ca5428ca33
commit
7e5401e8cc
|
@ -131,14 +131,20 @@ function stig_spinner {
|
|||
wait $1
|
||||
}
|
||||
|
||||
function disallow_package {
|
||||
package_name=$1
|
||||
|
||||
if service --status-all | grep "+.*${package_name}";then
|
||||
apt-get -yq remove --purge ${package_name}
|
||||
apt -yq autoremove
|
||||
fi
|
||||
}
|
||||
|
||||
function fix_stig {
|
||||
if [[ $RUN_STIG != 'fix' ]]; then
|
||||
return
|
||||
fi
|
||||
if service --status-all | grep "+.*xinetd";then
|
||||
apt-get -yq remove --purge xinetd
|
||||
apt -yq autoremove
|
||||
fi
|
||||
disallow_package xinetd
|
||||
lockdown_permissions
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue