Added posibility to disable Access log for web-interface containers

This commit is contained in:
Alexey Pustovalov
2020-06-28 20:36:13 +03:00
13 changed files with 118 additions and 3 deletions

View File

@ -261,11 +261,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/apache2/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