diff -r 9f67f7e21b35 -r d855722a41e1 debian/postinst --- a/debian/postinst Wed Mar 08 01:17:24 2017 +0100 +++ b/debian/postinst Wed Mar 08 21:32:23 2017 +0100 @@ -67,7 +67,8 @@ cat $out > /etc/ssh/sshd_config if which systemctl >/dev/null; then - systemctl try-reload-or-restart ssh.service + systemctl try-reload-or-restart ssh.service \ + || systemctl reload-or-try-restart ssh.service else invoke-rc.d ssh reload || service ssh reload fi @@ -101,7 +102,8 @@ update_log_level update_sshd_config if which systemctl >/dev/null; then - systemctl try-reload-or-restart ssh.service + systemctl try-reload-or-restart ssh.service \ + || systemctl reload-or-try-restart ssh.service else invoke-rc.d ssh reload || service ssh reload fi