Fix sed in run-os-net-config to only replace values, not keys
The sed in run-os-net-config.sh replaces all instances of bridge_name but it should only replace values, not keys. Change-Id: Iaf19e1550bd7a5286b8512596efd84cf14c78f32 Closes-bug: #1854780
This commit is contained in:
parent
668588d73e
commit
858cc6c54f
|
@ -80,7 +80,7 @@ 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/: \"bridge_name/: \"${bridge_name:-''}/" /etc/os-net-config/config.json
|
||||
sed -i "s/interface_name/${interface_name:-''}/" /etc/os-net-config/config.json
|
||||
|
||||
set +e
|
||||
|
|
Loading…
Reference in New Issue