mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-22 19:42:03 +01:00
Use # as a sed delimiter
This commit is contained in:
parent
c9eb6dc3b3
commit
50873357d0
@ -61,10 +61,10 @@ init() {
|
|||||||
chmod 644 "${KEYS_DIR}/provider_name"
|
chmod 644 "${KEYS_DIR}/provider_name"
|
||||||
|
|
||||||
sed \
|
sed \
|
||||||
-e "s/@PROVIDER_NAME@/${provider_name}/" \
|
-e "s#@PROVIDER_NAME@#${provider_name}#" \
|
||||||
-e "s/@EXTERNAL_IPV4@/${ext_address}/" \
|
-e "s#@EXTERNAL_IPV4@#${ext_address}#" \
|
||||||
-e "s/@TLS_PROXY_CONFIGURATION@/${tls_proxy_configuration}/" \
|
-e "s#@TLS_PROXY_CONFIGURATION@#${tls_proxy_configuration}#" \
|
||||||
-e "s/@DOMAIN_BLACKLIST_CONFIGURATION@/${domain_blacklist_configuration}/" \
|
-e "s#@DOMAIN_BLACKLIST_CONFIGURATION@#${domain_blacklist_configuration}#" \
|
||||||
"$CONFIG_FILE_TEMPLATE" >"$CONFIG_FILE"
|
"$CONFIG_FILE_TEMPLATE" >"$CONFIG_FILE"
|
||||||
|
|
||||||
/opt/encrypted-dns/sbin/encrypted-dns \
|
/opt/encrypted-dns/sbin/encrypted-dns \
|
||||||
@ -125,8 +125,8 @@ dnscrypt_wrapper_compat() {
|
|||||||
ext_address="0.0.0.0:443"
|
ext_address="0.0.0.0:443"
|
||||||
fi
|
fi
|
||||||
sed \
|
sed \
|
||||||
-e "s/@PROVIDER_NAME@/${provider_name}/" \
|
-e "s#@PROVIDER_NAME@#${provider_name}#" \
|
||||||
-e "s/@EXTERNAL_IPV4@/${ext_address}/" \
|
-e "s#@EXTERNAL_IPV4@#${ext_address}#" \
|
||||||
"$CONFIG_FILE_TEMPLATE" >"$CONFIG_FILE"
|
"$CONFIG_FILE_TEMPLATE" >"$CONFIG_FILE"
|
||||||
echo "...and check that everything's fine..." >&2
|
echo "...and check that everything's fine..." >&2
|
||||||
/opt/encrypted-dns/sbin/encrypted-dns \
|
/opt/encrypted-dns/sbin/encrypted-dns \
|
||||||
|
Loading…
Reference in New Issue
Block a user