File: postrm-runit

package info (click to toggle)
dh-runit 2.16.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 272 kB
  • sloc: perl: 302; sh: 219; haskell: 49; makefile: 22
file content (10 lines) | stat: -rw-r--r-- 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# Unfortunately, we can not assume, that bin:runit-helper package
# is installed at postrm stage.
#
# The only other option is embed whole runit-helper script here,
# into postrm script of -run package, but it would be like static
# linking, requiring rebuild of all reverse dependencies on every
# change of dh-runit.
if [ -z "${DPKG_ROOT:-}" ] && [ -x /usr/lib/runit-helper/runit-helper ] ; then
   NAME='#NAME#' ENABLE='#ENABLE#' ONUPGRADE='#ONUPGRADE#' /usr/lib/runit-helper/runit-helper postrm "$@"
fi