summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 21:13:37 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 21:13:37 +0200
commitdc54ab6d5183a0bb7a911753fdacd4d4effa3af4 (patch)
tree52d4660e92ed03552123d9980d807ae280578bb6 /src/conf_mode
parentac6e36fa76ce2cd86b6b71bb061da498e6da3a16 (diff)
downloadvyos-1x-dc54ab6d5183a0bb7a911753fdacd4d4effa3af4.tar.gz
vyos-1x-dc54ab6d5183a0bb7a911753fdacd4d4effa3af4.zip
service https: T1585: call to sudo can be omitted
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/le_cert.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/le_cert.py b/src/conf_mode/le_cert.py
index 466347d02..2db31d3fc 100755
--- a/src/conf_mode/le_cert.py
+++ b/src/conf_mode/le_cert.py
@@ -85,15 +85,15 @@ def generate(cert):
# start nginx if not active
ret = call('systemctl is-active --quiet nginx.service')
if ret:
- call('sudo systemctl start nginx.service')
+ call('systemctl start nginx.service')
request_certbot(cert)
def apply(cert):
if cert is not None:
- call('sudo systemctl restart certbot.timer')
+ call('systemctl restart certbot.timer')
else:
- call('sudo systemctl stop certbot.timer')
+ call('systemctl stop certbot.timer')
return None
for dep in dependencies: