From f433fe6ba79ea674ba1e796bd01d7ea286e955b3 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 20 Jun 2022 08:02:44 +0000 Subject: [PATCH] Add custom dns address to quick install script --- quick-installer.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/quick-installer.sh b/quick-installer.sh index dfdf81c..a6b8d78 100755 --- a/quick-installer.sh +++ b/quick-installer.sh @@ -50,6 +50,11 @@ set_creator_ssh_keys() { chmod 600 /home/creator/.ssh/authorized_keys } +set_dns_server() { + echo ">>> Setting DNS server..." >&2 + echo "nameserver 1.1.1.1" > /etc/resolv.conf +} + if ! check_privilege; then echo ">>> Error: Please run as root" >&2 exit 1 @@ -60,3 +65,5 @@ check_sudo_installation create_default_user set_creator_ssh_keys + +set_dns_server