From a735dddc52f4f77959c0a59cda96970a4826cc39 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 18 Apr 2023 10:07:08 -0500 Subject: [PATCH] scripts: fix setting `SRS_EXCLUDE_DOMAINS` during startup (#3271) --- target/scripts/startup/setup.d/postfix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/scripts/startup/setup.d/postfix.sh b/target/scripts/startup/setup.d/postfix.sh index eb830760..34b35e6e 100644 --- a/target/scripts/startup/setup.d/postfix.sh +++ b/target/scripts/startup/setup.d/postfix.sh @@ -170,8 +170,8 @@ function _setup_SRS if [[ -n ${SRS_EXCLUDE_DOMAINS} ]] then - sed -i \ - "s/^#\?(SRS_EXCLUDE_DOMAINS=).*$/\1=${SRS_EXCLUDE_DOMAINS}/g" \ + sedfile -i -E \ + "s|^#?(SRS_EXCLUDE_DOMAINS=).*|\1${SRS_EXCLUDE_DOMAINS}|" \ /etc/default/postsrsd fi }