mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-22 19:42:03 +01:00
Nits
This commit is contained in:
parent
744ecefe9a
commit
573a94ab34
@ -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 ;;
|
||||
|
Loading…
Reference in New Issue
Block a user