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/generate-ssh-server-key.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op-mode-definitions/generate-ssh-server-key.xml.in') diff --git a/op-mode-definitions/generate-ssh-server-key.xml.in b/op-mode-definitions/generate-ssh-server-key.xml.in index 86bb1b1bd..ecea3e5d1 100644 --- a/op-mode-definitions/generate-ssh-server-key.xml.in +++ b/op-mode-definitions/generate-ssh-server-key.xml.in @@ -14,7 +14,7 @@ Re-generate SSH host keys and restart SSH server - ${vyos_op_scripts_dir}/generate_ssh_server_key.py + sudo ${vyos_op_scripts_dir}/generate_ssh_server_key.py -- cgit v1.2.3