mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 00:24:58 +02:00
Added posibility to disable Access log for web-interface containers
This commit is contained in:
@ -264,11 +264,17 @@ prepare_zbx_web_config() {
|
||||
sed "/ZBX_SESSION_NAME/s/'[^']*'/'${ZBX_SESSION_NAME}'/2" "/tmp/defines.inc.php_tmp" > "$ZBX_WWW_ROOT/include/defines.inc.php"
|
||||
rm -f "/tmp/defines.inc.php_tmp"
|
||||
fi
|
||||
|
||||
if [ "${ENABLE_WEB_ACCESS_LOG:-"true"}" == "false" ]; then
|
||||
sed -ri \
|
||||
-e 's!^(\s*CustomLog)\s+\S+!\1 /dev/null!g' \
|
||||
"/etc/httpd/conf/httpd.conf"
|
||||
fi
|
||||
}
|
||||
|
||||
#################################################
|
||||
|
||||
echo "** Deploying Zabbix web-interface (Apache) with MySQL database"
|
||||
echo "** Deploying Zabbix web-interface (Apache) with PostgreSQL database"
|
||||
|
||||
check_variables
|
||||
check_db_connect
|
||||
|
Reference in New Issue
Block a user