mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-17 15:25:33 +00:00
15 lines
439 B
Bash
Executable File
15 lines
439 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
CONF_DIR="/opt/encrypted-dns/etc"
|
|
KEYS_DIR="/opt/encrypted-dns/etc/keys"
|
|
CONFIG_FILE="${CONF_DIR}/encrypted-dns.toml"
|
|
|
|
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"
|