File: postinst-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 (12 lines) | stat: -rw-r--r-- 527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# Unlike postrm, I can be sure, that runit-helper is present on
# postinst.
#start: remove after trixie
if  [ ! -e /usr/lib/runit-helper/runit-helper ]; then
    #should not happen
    echo "warning: can't find runit-helper, postinst action skipped!"
    echo "warning: runit-helper: please report this bug"
fi
#end: remove after trixie
if [ -z "${DPKG_ROOT:-}" ] && [ -x /usr/lib/runit-helper/runit-helper ]; then
    NAME='#NAME#' ENABLE='#ENABLE#' ONUPGRADE='#ONUPGRADE#' /usr/lib/runit-helper/runit-helper postinst "$@"
fi