fix(emqx-edge): fix sed error when emqx-edge start
This commit is contained in:
parent
d04e1c6f54
commit
54c776ebdf
2
bin/emqx
2
bin/emqx
|
@ -263,7 +263,7 @@ generate_config() {
|
||||||
## if they are different
|
## if they are different
|
||||||
if [ -n "$TMP_ARG_VALUE" ]; then
|
if [ -n "$TMP_ARG_VALUE" ]; then
|
||||||
## if the old value is present, replace it with generated value
|
## if the old value is present, replace it with generated value
|
||||||
sh -c "$SED_REPLACE 's/^$ARG_KEY.*$/$ARG_LINE/' $TMP_ARG_FILE"
|
sh -c "$SED_REPLACE 's|^$ARG_KEY.*$|$ARG_LINE|' $TMP_ARG_FILE"
|
||||||
else
|
else
|
||||||
## otherwise append generated value to the end
|
## otherwise append generated value to the end
|
||||||
echo "$ARG_LINE" >> "$TMP_ARG_FILE"
|
echo "$ARG_LINE" >> "$TMP_ARG_FILE"
|
||||||
|
|
Loading…
Reference in New Issue