summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-10-06 13:27:32 +0100
committerGitHub <noreply@github.com>2025-10-06 13:27:32 +0100
commit7bffb45f931f91416000a483c77e6749ced71206 (patch)
tree2cb145da6f406cdf8861162e45238c00ff0a99d8 /src
parent714248a44dff73ecf6e51a905e1837a67b784aa5 (diff)
parent91a7b5ae10936948a1d21f983a554f03eda411d5 (diff)
downloadvyos-1x-7bffb45f931f91416000a483c77e6749ced71206.tar.gz
vyos-1x-7bffb45f931f91416000a483c77e6749ced71206.zip
Merge pull request #4770 from c-po/wlb-sudo
wlb: T7902: remove explicit calls to sudo
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/load-balancing_wan.py4
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()