From 50873357d03df77780de9f80273198d8d8ddf8d1 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 25 Sep 2019 17:13:49 +0200 Subject: [PATCH] Use # as a sed delimiter --- entrypoint.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2155a24..04447f1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -61,10 +61,10 @@ init() { chmod 644 "${KEYS_DIR}/provider_name" sed \ - -e "s/@PROVIDER_NAME@/${provider_name}/" \ - -e "s/@EXTERNAL_IPV4@/${ext_address}/" \ - -e "s/@TLS_PROXY_CONFIGURATION@/${tls_proxy_configuration}/" \ - -e "s/@DOMAIN_BLACKLIST_CONFIGURATION@/${domain_blacklist_configuration}/" \ + -e "s#@PROVIDER_NAME@#${provider_name}#" \ + -e "s#@EXTERNAL_IPV4@#${ext_address}#" \ + -e "s#@TLS_PROXY_CONFIGURATION@#${tls_proxy_configuration}#" \ + -e "s#@DOMAIN_BLACKLIST_CONFIGURATION@#${domain_blacklist_configuration}#" \ "$CONFIG_FILE_TEMPLATE" >"$CONFIG_FILE" /opt/encrypted-dns/sbin/encrypted-dns \ @@ -125,8 +125,8 @@ dnscrypt_wrapper_compat() { ext_address="0.0.0.0:443" fi sed \ - -e "s/@PROVIDER_NAME@/${provider_name}/" \ - -e "s/@EXTERNAL_IPV4@/${ext_address}/" \ + -e "s#@PROVIDER_NAME@#${provider_name}#" \ + -e "s#@EXTERNAL_IPV4@#${ext_address}#" \ "$CONFIG_FILE_TEMPLATE" >"$CONFIG_FILE" echo "...and check that everything's fine..." >&2 /opt/encrypted-dns/sbin/encrypted-dns \