File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,9 @@ sed -e "s|address: \".*\" # model-a-ip|address: \"$MODEL_A_IP\"|g" \
170170if ! grep -q " $MODEL_A_IP " " $TEMP_CONFIG " || ! grep -q " $MODEL_B_IP " " $TEMP_CONFIG " ; then
171171 warn " IP substitution may have failed. Using template config instead..."
172172 # Fallback: create config with sed on known patterns
173- cat " $SCRIPT_DIR /config-openshift.yaml " | \
174- sed " s/172\.30\.64\.134/ $MODEL_A_IP /g" | \
175- sed " s/172\.30\.116\.177/ $MODEL_B_IP /g " > " $TEMP_CONFIG "
173+ sed -e " s/172\.30\.64\.134/ $MODEL_A_IP /g " \
174+ -e " s/172\.30\.116\.177/ $MODEL_B_IP /g" \
175+ " $SCRIPT_DIR /config-openshift.yaml " > " $TEMP_CONFIG "
176176fi
177177
178178success " Dynamic config generated with IPs: Model-A=$MODEL_A_IP , Model-B=$MODEL_B_IP "
You can’t perform that action at this time.
0 commit comments