mirror of
https://github.com/ovh/debian-cis.git
synced 2024-12-23 06:28:50 +01:00
Change default status disabled -> audit when no conf file
This commit is contained in:
parent
1a6ef92c99
commit
d6172ad89e
@ -60,7 +60,7 @@ if ! [ -r $CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg ] ; then
|
||||
if type -t create_config | grep -qw function ; then
|
||||
create_config >> $CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg
|
||||
else
|
||||
echo "status=disabled" >> $CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg
|
||||
echo "status=audit" >> $CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg
|
||||
fi
|
||||
fi
|
||||
[ -r $CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg ] && . $CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg
|
||||
|
Loading…
Reference in New Issue
Block a user