From 2a98e95bc208012fa5a75f5ba22d3823781b2cbe Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Tue, 10 Sep 2019 01:37:42 +0530 Subject: [PATCH] modify nameserver via env vairables Signed-off-by: Ameya Shenoy --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 259625a6..6cbfa470 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,6 +10,10 @@ if [ -z "${SUBSPACE_HTTP_HOST-}" ] ; then exit 1 fi +if [ -z "${NAMESERVER-}" ] ; then + export NAMESERVER="1.1.1.1" +fi + # Optional environment variables. if [ -z "${SUBSPACE_BACKLINK-}" ] ; then export SUBSPACE_BACKLINK="" @@ -27,7 +31,6 @@ if [ -z "${SUBSPACE_HTTP_INSECURE-}" ] ; then export SUBSPACE_HTTP_INSECURE="false" fi -export NAMESERVER="1.1.1.1" export DEBIAN_FRONTEND="noninteractive" # Set DNS server