mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-03-06 18:41:13 +01:00
Merge pull request #230 from zabbix/master
Fixed issue with config params undef
This commit is contained in:
commit
82aaab3474
agent
java-gateway
proxy-mysql
proxy-sqlite3
server-mysql
server-pgsql
web-apache-mysql
web-apache-pgsql
web-nginx-mysql
web-nginx-pgsql
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,7 @@ update_config_var() {
|
|||||||
|
|
||||||
# Remove configuration parameter definition in case of unset parameter value
|
# Remove configuration parameter definition in case of unset parameter value
|
||||||
if [ -z "$var_value" ]; then
|
if [ -z "$var_value" ]; then
|
||||||
sed -i -e "/$var_name=/d" "$config_path"
|
sed -i -e "/^$var_name=/d" "$config_path"
|
||||||
echo "removed"
|
echo "removed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user