From 84abe1f9d22418d858571992cb4fbe2bb3aa34a3 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 13 Jun 2020 23:18:08 +0200 Subject: ssh: T2321: always run "systemctl daemon-reload" --- src/conf_mode/ssh.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/conf_mode') 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 -- cgit v1.2.3