From 4f4362736de7a8d75ad31c158e7964e65cc4b1bd Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 13 Jan 2021 21:40:36 +0100 Subject: ssh: T3212: do not make /run/sshd directory disappear on failure (cherry picked from commit 57fca79636b783dc4be2df1bc1ff12a0ce79d988) --- src/conf_mode/ssh.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/ssh.py b/src/conf_mode/ssh.py index 28e606663..8eeb0a7c1 100755 --- a/src/conf_mode/ssh.py +++ b/src/conf_mode/ssh.py @@ -77,10 +77,9 @@ def apply(ssh): if not ssh: # SSH access is removed in the commit call('systemctl stop ssh.service') + return None - if ssh: - call('systemctl restart ssh.service') - + call('systemctl restart ssh.service') return None if __name__ == '__main__': -- cgit v1.2.3