mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-26 06:13:49 +01:00
Make all the legacy information accessible from _encrypted-dns
This commit is contained in:
parent
cd8f720cf6
commit
d7e9926d8f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user