Add custom dns address to quick install script
This commit is contained in:
parent
48d8b8ad28
commit
f433fe6ba7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user