From d7e9926d8f02ccfc3289e6cd057853d7890938c5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 25 Sep 2019 01:40:16 +0200 Subject: [PATCH] Make all the legacy information accessible from _encrypted-dns --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0e827e7..c2f5c5e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -103,7 +103,7 @@ dnscrypt_wrapper_compat() { echo "We'll just copy a few things to [${KEYS_DIR}] internally" >&2 find "$KEYS_DIR" -type f -print -exec cp -afv {} "$LEGACY_KEYS_DIR/" \; chmod 700 "$LEGACY_KEYS_DIR" - chown _encrypted-dns:_encrypted-dns "$LEGACY_KEYS_DIR" + chown -R _encrypted-dns:_encrypted-dns "$LEGACY_KEYS_DIR" echo "...and update the configuration file" >&2 sed -e "s#${KEYS_DIR}#${LEGACY_KEYS_DIR}#g" <"$CONFIG_FILE_TEMPLATE" >"${CONFIG_FILE_TEMPLATE}.tmp" && mv -f "${CONFIG_FILE_TEMPLATE}.tmp" "$CONFIG_FILE_TEMPLATE" || exit 1