mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
unbound: follow resolv.conf.auto to new location
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
@@ -106,11 +106,11 @@ rootkey_update() {
|
||||
##############################################################################
|
||||
|
||||
resolv_teardown() {
|
||||
case $( cat /tmp/resolv.conf ) in
|
||||
case $( cat $UB_RESOLV_CONF ) in
|
||||
*"generated by Unbound UCI"*)
|
||||
# our resolver file, reset to auto resolver file.
|
||||
rm -f /tmp/resolv.conf
|
||||
ln -s /tmp/resolv.conf.auto /tmp/resolv.conf
|
||||
rm -f $UB_RESOLV_CONF
|
||||
ln -s $UB_RESOLV_AUTO $UB_RESOLV_CONF
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user