mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-26 14:34:57 +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
|
EXPOSE 443/udp 443/tcp
|
||||||
|
|
||||||
CMD ["/etc/runit/2"]
|
CMD ["/entrypoint.sh", "start"]
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
@ -86,7 +86,10 @@ ensure_initialized() {
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
ensure_initialized
|
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() {
|
shell() {
|
||||||
@ -119,7 +122,7 @@ case "$action" in
|
|||||||
start) start ;;
|
start) start ;;
|
||||||
init)
|
init)
|
||||||
shift
|
shift
|
||||||
init $*
|
init "$@"
|
||||||
;;
|
;;
|
||||||
provider-info) provider_info ;;
|
provider-info) provider_info ;;
|
||||||
shell) shell ;;
|
shell) shell ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user