diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-06-22 22:45:46 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-06-23 00:22:45 +0200 |
commit | 19a1576263cf72de200094de79095b1a0ae81ec8 (patch) | |
tree | 91a2a38b424d9622372fc8b383ea935ef148a6b8 /scripts/build-command-op-templates | |
parent | 9bfcb3aef9ae198833d637416b9252941e634901 (diff) | |
download | vyos-1x-19a1576263cf72de200094de79095b1a0ae81ec8.tar.gz vyos-1x-19a1576263cf72de200094de79095b1a0ae81ec8.zip |
T689, T707: do not use sudo for op mode commands.
Else they all are unavailable for operator level users.
Diffstat (limited to 'scripts/build-command-op-templates')
-rwxr-xr-x | scripts/build-command-op-templates | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-command-op-templates b/scripts/build-command-op-templates index 25f03cf91..0383c8982 100755 --- a/scripts/build-command-op-templates +++ b/scripts/build-command-op-templates @@ -137,7 +137,7 @@ def make_node_def(props, command): if command is not None: - node_def += "run: sudo sh -c \"{0}\"\n".format(command.text) + node_def += "run: {0}\n".format(command.text) if debug: |