mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-16 18:34:35 +02:00
Redirect possible errors instead of display on screen
This commit is contained in:
parent
85f6c555b2
commit
a6ac097a93
@ -99,7 +99,7 @@
|
|||||||
Display --indent 6 --text "Info: Configuration file found (${APACHE_CONFIGFILE})"
|
Display --indent 6 --text "Info: Configuration file found (${APACHE_CONFIGFILE})"
|
||||||
else
|
else
|
||||||
# Probably the prefix is missing, so we are going to search that
|
# Probably the prefix is missing, so we are going to search that
|
||||||
APACHE_HTTPDROOT=`${HTTPDBINARY} -V | grep "\-D HTTPD_ROOT=" | sed 's/[ ]-D HTTPD_ROOT=//' | tr -d '"' | tr -d ' '`
|
APACHE_HTTPDROOT=`${HTTPDBINARY} -V 2> /dev/null | grep "\-D HTTPD_ROOT=" | sed 's/[ ]-D HTTPD_ROOT=//' | tr -d '"' | tr -d ' '`
|
||||||
#echo "Apache root prefix: ${APACHE_HTTPDROOT}"
|
#echo "Apache root prefix: ${APACHE_HTTPDROOT}"
|
||||||
#echo "Complete path to configuration file: ${APACHE_HTTPDROOT}/${APACHE_TEST}"
|
#echo "Complete path to configuration file: ${APACHE_HTTPDROOT}/${APACHE_TEST}"
|
||||||
APACHE_TESTFILE="${APACHE_HTTPDROOT}/${APACHE_TEST}"
|
APACHE_TESTFILE="${APACHE_HTTPDROOT}/${APACHE_TEST}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user