diff --git a/network/scripts/run-os-net-config.sh b/network/scripts/run-os-net-config.sh index 2ec9d2d455..334b384ee5 100755 --- a/network/scripts/run-os-net-config.sh +++ b/network/scripts/run-os-net-config.sh @@ -83,8 +83,8 @@ if [ -n '$network_config' ]; then network_config_hook fi - sed -i "s/: \"bridge_name/: \"${bridge_name:-''}/" /etc/os-net-config/config.json - sed -i "s/interface_name/${interface_name:-''}/" /etc/os-net-config/config.json + sed -i "s/: \"bridge_name/: \"${bridge_name:-''}/g" /etc/os-net-config/config.json + sed -i "s/interface_name/${interface_name:-''}/g" /etc/os-net-config/config.json set +e os-net-config -c /etc/os-net-config/config.json -v --detailed-exit-codes