From 33080e9766ce7e8d502a13ba3fad3d2f4bf86254 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 11 Dec 2019 16:44:47 +0100 Subject: [PATCH] Ensure that the keys directory is accessible from _encrypted-dns --- encrypted-dns.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/encrypted-dns.sh b/encrypted-dns.sh index bb51607..9712207 100755 --- a/encrypted-dns.sh +++ b/encrypted-dns.sh @@ -8,4 +8,7 @@ if [ ! -f "$KEYS_DIR/provider_name" ]; then exit 1 fi +chown -R _encrypted-dns:_encrypted-dns /opt/dnscrypt-wrapper/etc/keys 2>/dev/null || : +chown -R _encrypted-dns:_encrypted-dns /opt/encrypted-dns/etc/keys 2>/dev/null || : + exec /opt/encrypted-dns/sbin/encrypted-dns --config "$CONFIG_FILE"