summaryrefslogtreecommitdiff
path: root/scripts/vyatta-system-nameservers
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-system-nameservers')
-rw-r--r--scripts/vyatta-system-nameservers2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-system-nameservers b/scripts/vyatta-system-nameservers
index 8756bbb6..1df0f02c 100644
--- a/scripts/vyatta-system-nameservers
+++ b/scripts/vyatta-system-nameservers
@@ -33,7 +33,7 @@ print_usage()
restart_dnsmasq ()
{
# restart dnsmasq if dns-forwarding is configured
- if [ -d /opt/vyatta/config/active/service/dns/forwarding ]; then
+ if cli-shell-api existsActive service dns forwarding; then
/opt/vyatta/sbin/vyatta-dns-forwarding.pl --update-dnsforwarding >&/dev/null
fi
}