mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-10 11:56:56 +02:00
Fixed missing prepare_zbx_config function for some Nginx images
This commit is contained in:
parent
527b751878
commit
42450b9f49
@ -330,6 +330,14 @@ prepare_zbx_php_config() {
|
||||
"$NGINX_CONF_FILE"
|
||||
}
|
||||
|
||||
prepare_zbx_config() {
|
||||
if [ -n "${ZBX_SESSION_NAME}" ]; then
|
||||
cp "$ZABBIX_WWW_ROOT/include/defines.inc.php" "/tmp/defines.inc.php_tmp"
|
||||
sed "/ZBX_SESSION_NAME/s/'[^']*'/'${ZBX_SESSION_NAME}'/2" "/tmp/defines.inc.php_tmp" > "$ZABBIX_WWW_ROOT/include/defines.inc.php"
|
||||
rm -f "/tmp/defines.inc.php_tmp"
|
||||
fi
|
||||
}
|
||||
|
||||
#################################################
|
||||
|
||||
echo "** Deploying Zabbix web-interface (Nginx) with PostgreSQL database"
|
||||
|
@ -330,6 +330,14 @@ prepare_zbx_php_config() {
|
||||
"$NGINX_CONF_FILE"
|
||||
}
|
||||
|
||||
prepare_zbx_config() {
|
||||
if [ -n "${ZBX_SESSION_NAME}" ]; then
|
||||
cp "$ZABBIX_WWW_ROOT/include/defines.inc.php" "/tmp/defines.inc.php_tmp"
|
||||
sed "/ZBX_SESSION_NAME/s/'[^']*'/'${ZBX_SESSION_NAME}'/2" "/tmp/defines.inc.php_tmp" > "$ZABBIX_WWW_ROOT/include/defines.inc.php"
|
||||
rm -f "/tmp/defines.inc.php_tmp"
|
||||
fi
|
||||
}
|
||||
|
||||
#################################################
|
||||
|
||||
echo "** Deploying Zabbix web-interface (Nginx) with PostgreSQL database"
|
||||
|
@ -330,6 +330,14 @@ prepare_zbx_php_config() {
|
||||
"$NGINX_CONF_FILE"
|
||||
}
|
||||
|
||||
prepare_zbx_config() {
|
||||
if [ -n "${ZBX_SESSION_NAME}" ]; then
|
||||
cp "$ZABBIX_WWW_ROOT/include/defines.inc.php" "/tmp/defines.inc.php_tmp"
|
||||
sed "/ZBX_SESSION_NAME/s/'[^']*'/'${ZBX_SESSION_NAME}'/2" "/tmp/defines.inc.php_tmp" > "$ZABBIX_WWW_ROOT/include/defines.inc.php"
|
||||
rm -f "/tmp/defines.inc.php_tmp"
|
||||
fi
|
||||
}
|
||||
|
||||
#################################################
|
||||
|
||||
echo "** Deploying Zabbix web-interface (Nginx) with PostgreSQL database"
|
||||
|
Loading…
x
Reference in New Issue
Block a user