modify resolvconf head stopping and starting service in the process.

pull/2/head
necro-nemesis 4 years ago
parent 30c755eb1e
commit 9a3394771b

@ -0,0 +1 @@
nameserver 127.3.2.1

@ -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

Loading…
Cancel
Save