preinst is in pacemaker 1.1.18-0ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/sh
set -e
# For upgrades from older pacemaker, flag to corosync that pacemaker was
# running before the upgrade and should be started again. See
# LP: #1740892.
if [ "$1" = "upgrade" ]; then
if dpkg --compare-versions "$2" lt "1.1.18~rc4-1ubuntu1"; then
if deb-systemd-helper is-enabled pacemaker >/dev/null 2>&1; then
touch /run/pacemaker-was-running-lp1740892-workaround
fi
fi
fi
|