diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-13 21:40:36 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-13 21:43:16 +0100 |
commit | 4f4362736de7a8d75ad31c158e7964e65cc4b1bd (patch) | |
tree | 529233b2fcc9168187c5a33b8d2bd6105bd055ba /src/conf_mode/ssh.py | |
parent | 65f66d73d56006779d4bd698b2ce039374614548 (diff) | |
download | vyos-1x-4f4362736de7a8d75ad31c158e7964e65cc4b1bd.tar.gz vyos-1x-4f4362736de7a8d75ad31c158e7964e65cc4b1bd.zip |
ssh: T3212: do not make /run/sshd directory disappear on failure
(cherry picked from commit 57fca79636b783dc4be2df1bc1ff12a0ce79d988)
Diffstat (limited to 'src/conf_mode/ssh.py')
-rwxr-xr-x | src/conf_mode/ssh.py | 5 |
1 files changed, 2 insertions, 3 deletions
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__': |