diff --git a/head b/head new file mode 100644 index 0000000..471ca1b --- /dev/null +++ b/head @@ -0,0 +1 @@ +nameserver 127.3.2.1 diff --git a/installers/common.sh b/installers/common.sh index 607143d..8817b4f 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -96,6 +96,14 @@ function download_latest_files() { install_log "Cloning latest files from github" git clone --depth 1 https://github.com/necro-nemesis/SNapp-Pi-Host $snapp_dir || install_error "Unable to download files from github" + +#handle changes to resolvconf giving nameserver 127.3.2.1 priority. + sudo systemctl stop resolvconf + sudo mv $snapp_dir/head /etc/resolvconf/resolv.conf.d/head || install_error "Unable to move resolvconf head file" + sudo rm /etc/resolv.conf + sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf + sudo resolvconf -u || install_error "Unable to update resolv.conf" + sudo systemctl start resolvconf } # Sets files ownership in SNapp directory