summaryrefslogtreecommitdiffstats
path: root/debian/openssh-server.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 11:13:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 11:13:19 +0000
commit94597021fbf5b12b369b7bb3c13af715d8be8c4e (patch)
tree5195a1ab18ed95e7ae2e5bf5e74396b00861a6b7 /debian/openssh-server.preinst
parentAdding upstream version 1:8.4p1. (diff)
downloadopenssh-bc06b6db68c10b2978c74f0616ab2e484a484f6f.tar.xz
openssh-bc06b6db68c10b2978c74f0616ab2e484a484f6f.zip
Adding debian version 1:8.4p1-5+deb11u3.debian/1%8.4p1-5+deb11u3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/openssh-server.preinst')
-rw-r--r--debian/openssh-server.preinst18
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