updates-proxy: restart on network configuration change to reload DNS

Apparently tinyproxy does not notice /etc/resolv.conf change, so need to
be kicked to reload it.

Fixes QubesOS/qubes-issues#1530
This commit is contained in:
Marek Marczykowski-Górecki 2015-12-19 18:44:32 +01:00
parent e7d4830434
commit 4e3076f0b6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1,2 +1,9 @@
#!/bin/sh
/usr/lib/qubes/qubes-setup-dnat-to-ns
# Tinyproxy does not reload DNS servers
if [ -x /bin/systemctl ]; then
/bin/systemctl --no-block try-restart qubes-updates-proxy.service
else
/usr/sbin/service qubes-updates-proxy try-restart
fi