diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:26:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:26:58 +0000 |
commit | 4722d4b7980d6fd8145e2e9f08492d951ea261d1 (patch) | |
tree | 7ab498b39f5bdce46b1bbc41ef5201322df4e2d4 /debian/openssh-server.preinst | |
parent | Adding upstream version 1:7.9p1. (diff) | |
download | openssh-2821c3573b8dadc5ea045ef239a7c8767c1153cb.tar.xz openssh-2821c3573b8dadc5ea045ef239a7c8767c1153cb.zip |
Adding debian version 1:7.9p1-10+deb10u2.debian/1%7.9p1-10+deb10u2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/openssh-server.preinst')
-rw-r--r-- | debian/openssh-server.preinst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/openssh-server.preinst b/debian/openssh-server.preinst new file mode 100644 index 0000000..f5b7512 --- /dev/null +++ b/debian/openssh-server.preinst @@ -0,0 +1,18 @@ +#!/bin/sh +set -e + +action=$1 +version=$2 + +if [ "$action" = upgrade ] || [ "$action" = install ] +then + if dpkg --compare-versions "$version" lt 1:5.5p1-6 && \ + [ -d /run/sshd ]; then + # make sure /run/sshd is not removed on upgrades + touch /run/sshd/.placeholder + fi +fi + +#DEBHELPER# + +exit 0 |