]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
cloud-init: Disable using ISP nameservers
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Feb 2020 14:27:08 +0000 (14:27 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 16 Feb 2020 16:01:10 +0000 (16:01 +0000)
This is mostly aesthetic because there are no ISP nameservers
anyways that we could use here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/helper/aws-setup
src/initscripts/helper/azure-setup

index 2c3311fc24ba44e0b44fddc3484a4100d25a99c5..8843198221df07be6f74ab9343cadcc621007a04 100644 (file)
@@ -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
 
index d84ec3acaaf022a03a2b321e4cedb7db42e610e1..291b8e0a4d9f31853c1fd5906ac400677adee2c9 100644 (file)
@@ -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