summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-13 23:18:08 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-13 23:18:08 +0200
commit84abe1f9d22418d858571992cb4fbe2bb3aa34a3 (patch)
tree919bee07aa999825aca384bcefd6fdf6a32e9fed /src/conf_mode
parent7b1f1fa56f7ff7de14de7c5bc38753ceec565c0a (diff)
downloadvyos-1x-84abe1f9d22418d858571992cb4fbe2bb3aa34a3.tar.gz
vyos-1x-84abe1f9d22418d858571992cb4fbe2bb3aa34a3.zip
ssh: T2321: always run "systemctl daemon-reload"
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/ssh.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/conf_mode/ssh.py b/src/conf_mode/ssh.py
index ef70de7be..43fa2ff39 100755
--- a/src/conf_mode/ssh.py
+++ b/src/conf_mode/ssh.py
@@ -137,9 +137,11 @@ def apply(ssh):
os.unlink(config_file)
if os.path.isfile(systemd_override):
os.unlink(systemd_override)
- else:
- # Reload systemd manager configuration
- call('systemctl daemon-reload')
+
+ # Reload systemd manager configuration
+ call('systemctl daemon-reload')
+
+ if ssh:
call('systemctl restart ssh.service')
return None