scripts: fix setting SRS_EXCLUDE_DOMAINS during startup (#3271)

This commit is contained in:
James 2023-04-18 10:07:08 -05:00 committed by GitHub
parent 2f33f44f4a
commit a735dddc52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}