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