diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-10-02 23:57:10 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-10-02 23:57:10 +0200 |
| commit | 91a7b5ae10936948a1d21f983a554f03eda411d5 (patch) | |
| tree | ebd1dc124ac4ba73e3386aa0de44bfa4a67213c5 /src | |
| parent | 31d0ac632882e0faf8334823acc0a29147d22cc0 (diff) | |
| download | vyos-1x-91a7b5ae10936948a1d21f983a554f03eda411d5.tar.gz vyos-1x-91a7b5ae10936948a1d21f983a554f03eda411d5.zip | |
wlb: T7902: remove explicit calls to sudo
Configuration mode scripts are executed under the context of vyos-configd or
vyos-commitd and thus do not need an explicit call to sudo. Permission handling
is done outside.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/conf_mode/load-balancing_wan.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/load-balancing_wan.py b/src/conf_mode/load-balancing_wan.py index 8efb33f47..3f2433fa1 100755 --- a/src/conf_mode/load-balancing_wan.py +++ b/src/conf_mode/load-balancing_wan.py @@ -150,9 +150,9 @@ def generate(lb): def apply(lb): if not lb: - cmd(f'sudo systemctl stop {service}') + cmd(f'systemctl stop {service}') else: - cmd(f'sudo systemctl restart {service}') + cmd(f'systemctl restart {service}') call_dependents() |
