mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 21:43:00 +02:00
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 <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
a8df6e7807
commit
88cb5eb187
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user