Merge pull request #232 from zabbix/master

Fixed issue with config params undef
This commit is contained in:
Alexey Pustovalov 2018-02-21 03:02:52 +02:00 committed by GitHub
commit d6677fabf9
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
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi

View File

@ -64,7 +64,7 @@ update_config_var() {
# Remove configuration parameter definition in case of unset parameter value
if [ -z "$var_value" ]; then
sed -i -e "/$var_name=/d" "$config_path"
sed -i -e "/^$var_name=/d" "$config_path"
echo "removed"
return
fi