You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
443 B
Bash
16 lines
443 B
Bash
5 years ago
|
#! /usr/bin/env bash
|
||
|
|
||
|
LEGACY_KEYS_DIR="/opt/dnscrypt-wrapper/etc/keys"
|
||
|
CONF_DIR="/opt/encrypted-dns/etc"
|
||
|
KEYS_DIR="/opt/encrypted-dns/etc/keys"
|
||
|
LISTS_DIR="/opt/encrypted-dns/etc/lists"
|
||
|
BLACKLIST="${LISTS_DIR}/blacklist.txt"
|
||
|
CONFIG_FILE="${CONF_DIR}/encrypted-dns.toml"
|
||
|
|
||
|
if [ ! -f "$KEYS_DIR/provider_name" ]; then
|
||
|
exit 1
|
||
|
fi
|
||
|
provider_name=$(cat "$KEYS_DIR/provider_name")
|
||
|
|
||
|
exec /opt/encrypted-dns/sbin/encrypted-dns --config "$CONFIG_FILE"
|