Skip to content

Commit bb658d2

Browse files
committed
Work around debhelper bug #989155
On buster/bullseye this bug is unfixed and the service won't be correctly stopped/restarted if the old package version doesn't stop the service in prerm.
1 parent 3fe5d5b commit bb658d2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

debian-bullseye/dump1090-fa.preinst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e
3+
4+
# Work around Debian bug #989155
5+
if [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then
6+
deb-systemd-invoke stop 'dump1090-fa.service' >/dev/null || true
7+
fi

debian-buster/dump1090-fa.preinst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e
3+
4+
# Work around Debian bug #989155
5+
if [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then
6+
deb-systemd-invoke stop 'dump1090-fa.service' >/dev/null || true
7+
fi

0 commit comments

Comments
 (0)