From dc54ab6d5183a0bb7a911753fdacd4d4effa3af4 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 13 Apr 2020 21:13:37 +0200 Subject: service https: T1585: call to sudo can be omitted --- src/conf_mode/le_cert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/conf_mode') 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: -- cgit v1.2.3