1
1
mirror of https://github.com/dnscrypt/dnscrypt-server-docker synced 2024-11-22 15:32:01 +01:00
This commit is contained in:
Frank Denis 2019-09-23 19:40:44 +02:00
parent 744ecefe9a
commit 573a94ab34
2 changed files with 6 additions and 3 deletions

@ -68,6 +68,6 @@ VOLUME ["/opt/encrypted-dns/etc/keys"]
EXPOSE 443/udp 443/tcp
CMD ["/etc/runit/2"]
CMD ["/entrypoint.sh", "start"]
ENTRYPOINT ["/entrypoint.sh"]

@ -86,7 +86,10 @@ ensure_initialized() {
start() {
ensure_initialized
exec /etc/runit/2
/opt/encrypted-dns/sbin/encrypted-dns \
--config "$CONFIG_FILE" --dry-run |
tee "${KEYS_DIR}/provider-info.txt"
exec /etc/runit/2 </dev/null >/dev/null 2>/dev/null
}
shell() {
@ -119,7 +122,7 @@ case "$action" in
start) start ;;
init)
shift
init $*
init "$@"
;;
provider-info) provider_info ;;
shell) shell ;;