diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-19 22:32:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 22:32:22 +0200 |
commit | b708a375010c7240d11412d92f8552dbba2abdc0 (patch) | |
tree | 01428d83fe5375545afee1f6359d35e0ab7ad2ba /src/conf_mode/vrrp.py | |
parent | b645e28edb6e92fe13e781c0d29853aebaceb711 (diff) | |
parent | 43dd945c5a45c86c491892f30546d0179751bf4a (diff) | |
download | vyos-1x-b708a375010c7240d11412d92f8552dbba2abdc0.tar.gz vyos-1x-b708a375010c7240d11412d92f8552dbba2abdc0.zip |
Merge pull request #414 from thomas-mangin/T2467
util: T2467: automatically add sudo to known commands
Diffstat (limited to 'src/conf_mode/vrrp.py')
-rwxr-xr-x | src/conf_mode/vrrp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/vrrp.py b/src/conf_mode/vrrp.py index f358891a5..1a5ad1f8c 100755 --- a/src/conf_mode/vrrp.py +++ b/src/conf_mode/vrrp.py @@ -227,17 +227,17 @@ def apply(data): if not VRRP.is_running(): print("Starting the VRRP process") - ret = call("sudo systemctl restart keepalived.service") + ret = call("systemctl restart keepalived.service") else: print("Reloading the VRRP process") - ret = call("sudo systemctl reload keepalived.service") + ret = call("systemctl reload keepalived.service") if ret != 0: raise ConfigError("keepalived failed to start") else: # VRRP is removed in the commit print("Stopping the VRRP process") - call("sudo systemctl stop keepalived.service") + call("systemctl stop keepalived.service") os.unlink(VRRP.location['daemon']) return None |