summarylogtreecommitdiffstats
path: root/openssh-hpn.install
diff options
context:
space:
mode:
Diffstat (limited to 'openssh-hpn.install')
-rw-r--r--openssh-hpn.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/openssh-hpn.install b/openssh-hpn.install
index ed77bc2785b9..328dfae9effc 100644
--- a/openssh-hpn.install
+++ b/openssh-hpn.install
@@ -29,4 +29,14 @@ EOF
post_upgrade() {
post_install
+
+ if (( $(vercmp $2 8.2p1-3) < 0 )); then
+ if systemctl is-active sshd.service >/dev/null; then
+ cat <<EOF
+==> After this upgrade, your existing SSH daemon may be unable to accept
+==> new connections. To fix this, your SSH daemon will now be restarted.
+EOF
+ systemctl restart sshd.service
+ fi
+ fi
}