summaryrefslogtreecommitdiff
path: root/debian/openssh-server.preinst
blob: 9fb5d350e8cf2a73f90623c5187d434aacfc3aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 /var/run/sshd ]; then
    # make sure /var/run/sshd is not removed on upgrades
    touch /var/run/sshd/.placeholder
  fi
fi

#DEBHELPER#

exit 0