mirror of https://github.com/CISOfy/lynis.git
Implemented PR to detect ServerAlias
Merge branch 'DjSlash-patch-1'
This commit is contained in:
commit
08cce0ca63
|
@ -156,7 +156,7 @@
|
|||
fi
|
||||
done
|
||||
# Search Server aliases
|
||||
for J in `${GREPBINARY} "ServerAlias" ${I} | ${GREPBINARY} -v "^#" | ${SEDBINARY} "s/.* ServerAlias//g" | ${SEDBINARY} "s/#.*//g"`; do
|
||||
for J in $(${GREPBINARY} "ServerAlias" ${I} | ${GREPBINARY} -v "^#" | ${SEDBINARY} "s/\s*ServerAlias //g" | ${SEDBINARY} "s/#.*//g"); do
|
||||
if [ ! -z ${J} ]; then
|
||||
tVHOSTS="${tVHOSTS} ${J}"
|
||||
cVHOSTS=$((cVHOSTS + 1))
|
||||
|
|
Loading…
Reference in New Issue