From 54c776ebdf6ee23b5311c1237028bb237e4fd020 Mon Sep 17 00:00:00 2001 From: zhanghongtong Date: Mon, 12 Jul 2021 13:46:38 +0800 Subject: [PATCH] fix(emqx-edge): fix sed error when emqx-edge start --- bin/emqx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emqx b/bin/emqx index f0a53cd45..0e019a4fc 100755 --- a/bin/emqx +++ b/bin/emqx @@ -263,7 +263,7 @@ generate_config() { ## if they are different if [ -n "$TMP_ARG_VALUE" ]; then ## 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 ## otherwise append generated value to the end echo "$ARG_LINE" >> "$TMP_ARG_FILE"