From: Michael Tremer Date: Wed, 5 Feb 2020 14:27:08 +0000 (+0000) Subject: cloud-init: Disable using ISP nameservers X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88cb5eb18744911513c08e851f945a548b324efc;p=people%2Fstevee%2Fipfire-2.x.git cloud-init: Disable using ISP nameservers This is mostly aesthetic because there are no ISP nameservers anyways that we could use here. Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup index 2c3311fc24..8843198221 100644 --- a/src/initscripts/helper/aws-setup +++ b/src/initscripts/helper/aws-setup @@ -214,6 +214,9 @@ import_aws_configuration() { # Actions performed only on the very first start if [ ! -e "/var/ipfire/main/firstsetup_ok" ]; then + # Disable using ISP nameservers + sed -e "s/^USE_ISP_NAMESERVERS=.*/USE_ISP_NAMESERVERS=off/" -i /var/ipfire/dns/settings + # Enable SSH sed -e "s/ENABLE_SSH=.*/ENABLE_SSH=on/g" -i /var/ipfire/remote/settings diff --git a/src/initscripts/helper/azure-setup b/src/initscripts/helper/azure-setup index d84ec3acaa..291b8e0a4d 100644 --- a/src/initscripts/helper/azure-setup +++ b/src/initscripts/helper/azure-setup @@ -240,6 +240,9 @@ import_azure_configuration() { # Actions performed only on the very first start if [ ! -e "/var/ipfire/main/firstsetup_ok" ]; then + # Disable using ISP nameservers + sed -e "s/^USE_ISP_NAMESERVERS=.*/USE_ISP_NAMESERVERS=off/" -i /var/ipfire/dns/settings + # Enable SSH sed -e "s/ENABLE_SSH=.*/ENABLE_SSH=on/g" -i /var/ipfire/remote/settings