From 9efa2ed17852a9d4e6f93609138436b5e4b552f2 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 5 Jul 2018 17:45:29 +0200 Subject: T734: use existsEffective instead of exists in DNS forwarding restart script to make it work from op mode. --- src/op_mode/dns_forwarding_restart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/op_mode/dns_forwarding_restart.sh b/src/op_mode/dns_forwarding_restart.sh index 12106fcc1..8e556f2f0 100755 --- a/src/op_mode/dns_forwarding_restart.sh +++ b/src/op_mode/dns_forwarding_restart.sh @@ -1,6 +1,6 @@ #!/bin/sh -if cli-shell-api exists service dns forwarding; then +if cli-shell-api existsEffective service dns forwarding; then echo "Restarting the DNS forwarding service" systemctl restart pdns-recursor else -- cgit v1.2.3