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