From 84ef5431981c1b434b42053f6305a1e4acae754f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 29 May 2020 19:59:13 +0200 Subject: Revert "dynamic-dns: op-mode: add restart command" This is actually implemented as "update dns dynamic" This reverts commit 968ea6284fe177aa0c3ace747e2027d151e2474e. --- op-mode-definitions/dynamic-dns.xml | 14 -------------- src/op_mode/dns_dynamic_restart.sh | 8 -------- 2 files changed, 22 deletions(-) delete mode 100755 src/op_mode/dns_dynamic_restart.sh diff --git a/op-mode-definitions/dynamic-dns.xml b/op-mode-definitions/dynamic-dns.xml index 33c10c03c..6ea6482e1 100644 --- a/op-mode-definitions/dynamic-dns.xml +++ b/op-mode-definitions/dynamic-dns.xml @@ -44,18 +44,4 @@ - - - - - - - Restart dynamic DNS service - - sudo ${vyos_op_scripts_dir}/dns_dynamic_restart.sh - - - - - diff --git a/src/op_mode/dns_dynamic_restart.sh b/src/op_mode/dns_dynamic_restart.sh deleted file mode 100755 index 1b67ff4f1..000000000 --- a/src/op_mode/dns_dynamic_restart.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -if cli-shell-api existsEffective service dns dynamic; then - echo "Restarting dynamic DNS service" - systemctl restart ddclient.service -else - echo "Dynamic DNS update service is not configured" -fi -- cgit v1.2.3