diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-06-23 00:29:22 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-06-23 00:31:58 +0200 |
commit | 4c6282a43bc1a2ddfe690eef88536cfcd2b88535 (patch) | |
tree | 538eb13708fef0e5a637dc5ad286adf5c3d5ed6c | |
parent | 19a1576263cf72de200094de79095b1a0ae81ec8 (diff) | |
download | vyos-1x-4c6282a43bc1a2ddfe690eef88536cfcd2b88535.tar.gz vyos-1x-4c6282a43bc1a2ddfe690eef88536cfcd2b88535.zip |
T689, T707: insert sudo where necessary in op mode command definitions.
-rw-r--r-- | op-mode-definitions/dns-forwarding.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/op-mode-definitions/dns-forwarding.xml b/op-mode-definitions/dns-forwarding.xml index b072fab79..e789f4aee 100644 --- a/op-mode-definitions/dns-forwarding.xml +++ b/op-mode-definitions/dns-forwarding.xml @@ -14,7 +14,7 @@ <properties> <help>Show DNS forwarding statistics</help> </properties> - <command>${vyos_op_scripts_dir}/dns_forwarding_statistics.py</command> + <command>sudo ${vyos_op_scripts_dir}/dns_forwarding_statistics.py</command> </leafNode> </children> </node> @@ -33,7 +33,7 @@ <properties> <help>Restart DNS forwarding service</help> </properties> - <command>${vyos_op_scripts_dir}/dns_forwarding_restart.sh</command> + <command>sudo ${vyos_op_scripts_dir}/dns_forwarding_restart.sh</command> </leafNode> </children> </node> @@ -52,13 +52,13 @@ </properties> <children> <tagNode name="domain"> - <command>${vyos_op_scripts_dir}/dns_forwarding_reset.py $5</command> + <command>sudo ${vyos_op_scripts_dir}/dns_forwarding_reset.py $5</command> <properties> <help>Reset DNS forwarding cache for a domain</help> </properties> </tagNode> <leafNode name="all"> - <command>${vyos_op_scripts_dir}/dns_forwarding_reset.py --all</command> + <command>sudo ${vyos_op_scripts_dir}/dns_forwarding_reset.py --all</command> <properties> <help>Reset DNS forwarding cache</help> </properties> |