mirror of
https://github.com/ovh/debian-cis.git
synced 2025-07-15 21:32:17 +02:00
Compare commits
2 Commits
damcava35/
...
damcava35/
Author | SHA1 | Date | |
---|---|---|---|
0272945ca2 | |||
231db2bf93 |
@ -319,10 +319,7 @@ fi
|
||||
for SCRIPT in $(find "${CIS_CHECKS_DIR}"/ -name "*.sh" | sort -V); do
|
||||
if [ "${#TEST_LIST[@]}" -gt 0 ]; then
|
||||
# --only X has been specified at least once, is this script in my list ?
|
||||
SCRIPT_PREFIX=$(grep -Eo '^[0-9.]+' <<<"$(basename "$SCRIPT")")
|
||||
# shellcheck disable=SC2001
|
||||
SCRIPT_PREFIX_RE=$(sed -e 's/\./\\./g' <<<"$SCRIPT_PREFIX")
|
||||
if ! grep -qE "(^|[[:space:]])$SCRIPT_PREFIX_RE([[:space:]]|$)" <<<"${TEST_LIST[@]}"; then
|
||||
if ! grep -qE "$(basename "$SCRIPT")" <<<"${TEST_LIST[@]}"; then
|
||||
# not in the list
|
||||
continue
|
||||
fi
|
||||
|
1
debian/rules
vendored
1
debian/rules
vendored
@ -28,6 +28,7 @@ override_dh_install:
|
||||
# (ls | sort -V | xargs -i echo /opt/cis-hardening/etc/conf.d/{} -- without README -- with ../hardening.cfg)
|
||||
cp -R etc $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
|
||||
cp -R lib $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
|
||||
cp -R versions $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
|
||||
# cleanup git stuff if any
|
||||
find $(CURDIR)/debian/$(PACKAGE) -type f -name .gitignore -delete
|
||||
|
||||
|
Reference in New Issue
Block a user