Merge pull request #229 from zabbix/master

Fixed issue with config params undef
This commit is contained in:
Alexey Pustovalov 2018-02-21 03:01:40 +02:00 committed by GitHub
commit b0b2e073ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 30 additions and 30 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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