summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 21:12:06 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 21:12:06 +0200
commitac6e36fa76ce2cd86b6b71bb061da498e6da3a16 (patch)
tree68890131419a9cb270022616c96a1a35afdc4488 /src/conf_mode
parentdc350ecd9fc8c877b1059db2aa10f48f250cd6ef (diff)
downloadvyos-1x-ac6e36fa76ce2cd86b6b71bb061da498e6da3a16.tar.gz
vyos-1x-ac6e36fa76ce2cd86b6b71bb061da498e6da3a16.zip
service https: T1585: bugfix typo in systemd name
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/le_cert.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conf_mode/le_cert.py b/src/conf_mode/le_cert.py
index 4b365a566..466347d02 100755
--- a/src/conf_mode/le_cert.py
+++ b/src/conf_mode/le_cert.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2019 VyOS maintainers and contributors
+# Copyright (C) 2019-2020 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -13,8 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-#
import sys
import os
@@ -25,7 +23,6 @@ from vyos import ConfigError
from vyos.util import cmd
from vyos.util import call
-
vyos_conf_scripts_dir = vyos.defaults.directories['conf_mode']
dependencies = [
@@ -86,7 +83,7 @@ def generate(cert):
# certbot will attempt to reload nginx, even with 'certonly';
# start nginx if not active
- ret = call('systemctl is-active --quiet nginx.ervice')
+ ret = call('systemctl is-active --quiet nginx.service')
if ret:
call('sudo systemctl start nginx.service')