From b76931e6d3a4bd0cdb74ca447a746ab6855fcf55 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 18 May 2021 19:13:34 +0200 Subject: revert: "util: T2467: add autosudo as an option to command" Implementing a wrapper which will - based on the command - add a sudo prefix to the execution string seemed to be a nice idea but unfortunately it did not only not get momentum but also the codebase somethis added an implicit "sudo" call a second time. This resulted in a call: "sudo sudo systemctl" The entire functionality was removed again and if an op-mode script requires root priviledges it must be explicitly called with them - no black magic. --- op-mode-definitions/flow-accounting-op.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op-mode-definitions/flow-accounting-op.xml.in') diff --git a/op-mode-definitions/flow-accounting-op.xml.in b/op-mode-definitions/flow-accounting-op.xml.in index b847338f9..7aaae5974 100644 --- a/op-mode-definitions/flow-accounting-op.xml.in +++ b/op-mode-definitions/flow-accounting-op.xml.in @@ -57,7 +57,7 @@ Restart (net)flow accounting process - ${vyos_op_scripts_dir}/flow_accounting_op.py --action restart + sudo ${vyos_op_scripts_dir}/flow_accounting_op.py --action restart -- cgit v1.2.3