diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-19 21:13:40 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-19 21:13:40 +0100 |
commit | 43dd945c5a45c86c491892f30546d0179751bf4a (patch) | |
tree | 9e30f8270347717726dc137b61b5034d90f05072 /python/vyos/util.py | |
parent | 3458a8b50853ecd032ebc3ee87f00452ac73ebcd (diff) | |
download | vyos-1x-43dd945c5a45c86c491892f30546d0179751bf4a.tar.gz vyos-1x-43dd945c5a45c86c491892f30546d0179751bf4a.zip |
util: T2467: add systemctl to autosudo
Diffstat (limited to 'python/vyos/util.py')
-rw-r--r-- | python/vyos/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py index 26352f93c..c2479aac4 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -23,7 +23,7 @@ import sys def _need_sudo(command): - return os.path.basename(command.split()[0]) in ('', ) + return os.path.basename(command.split()[0]) in ('systemctl', ) def _add_sudo(command): |