Skip to content

Commit f27deee

Browse files
authored
Merge pull request #27656 from kurokobo/fix/#27579_env
Fix #27579: Add escape for each double-quotes
2 parents a83ba33 + 9e357e1 commit f27deee

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

modules/ipi-install-preparing-the-provisioner-node-for-openshift-install.adoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,23 +100,23 @@ This step can also be run from the web console.
100100
----
101101
[kni@provisioner ~]$ export PUB_CONN=<baremetal_nic_name>
102102
[kni@provisioner ~]$ export PROV_CONN=<prov_nic_name>
103-
[kni@provisioner ~]$ sudo nohup bash -c '
104-
nmcli con down "$PROV_CONN"
105-
nmcli con down "$PUB_CONN"
106-
nmcli con delete "$PROV_CONN"
107-
nmcli con delete "$PUB_CONN"
108-
# RHEL 8.1 appends the word "System" in front of the connection, delete in case it exists
109-
nmcli con down "System $PUB_CONN"
110-
nmcli con delete "System $PUB_CONN"
103+
[kni@provisioner ~]$ sudo nohup bash -c "
104+
nmcli con down \"$PROV_CONN\"
105+
nmcli con down \"$PUB_CONN\"
106+
nmcli con delete \"$PROV_CONN\"
107+
nmcli con delete \"$PUB_CONN\"
108+
# RHEL 8.1 appends the word \"System\" in front of the connection, delete in case it exists
109+
nmcli con down \"System $PUB_CONN\"
110+
nmcli con delete \"System $PUB_CONN\"
111111
nmcli connection add ifname provisioning type bridge con-name provisioning
112-
nmcli con add type bridge-slave ifname "$PROV_CONN" master provisioning
112+
nmcli con add type bridge-slave ifname \"$PROV_CONN\" master provisioning
113113
nmcli connection add ifname baremetal type bridge con-name baremetal
114-
nmcli con add type bridge-slave ifname "$PUB_CONN" master baremetal
115-
nmcli con down "$PUB_CONN";pkill dhclient;dhclient baremetal
114+
nmcli con add type bridge-slave ifname \"$PUB_CONN\" master baremetal
115+
pkill dhclient;dhclient baremetal
116116
nmcli connection modify provisioning ipv6.addresses fd00:1101::1/64 ipv6.method manual
117117
nmcli con down provisioning
118118
nmcli con up provisioning
119-
'
119+
"
120120
----
121121
+
122122
[NOTE]

0 commit comments

Comments
 (0)