diff options
author | Dmitry Bogatov <KAction@gnu.org> | 2018-04-14 18:02:10 +0300 |
---|---|---|
committer | Dmitry Bogatov <KAction@gnu.org> | 2018-04-14 18:02:14 +0300 |
commit | 30ffe9ba78d89d1244acf77289c5a231670aa436 (patch) | |
tree | 07b0f060df0f7746016af4c0683106451eb72f5a /postrm-runit | |
parent | d7d7cd4071d19aa31325fe0a320a80a68dc17b40 (diff) |
Invoke runit-helper only if it is available
Diffstat (limited to 'postrm-runit')
-rw-r--r-- | postrm-runit | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/postrm-runit b/postrm-runit index edd9ee7..a306688 100644 --- a/postrm-runit +++ b/postrm-runit | |||
@@ -1,7 +1,18 @@ | |||
1 | # -*- shell-script -*- | 1 | # -*- shell-script -*- |
2 | export NAME='#NAME#' | 2 | export NAME='#NAME#' |
3 | /lib/runit-helper/runit-helper postrm "$@" | 3 | |
4 | # Unfortunately, we can not assume, that bin:runit-helper package | ||
5 | # is installed at postrm stage. | ||
6 | # | ||
7 | # The only other option is embed whole runit-helper script here, | ||
8 | # into postrm script of -run package, but it would be like static | ||
9 | # linking, requiring rebuild of all reverse dependencies on every | ||
10 | # change of dh-runit. | ||
11 | if [ -x /lib/runit-helper/runit-helper ] ; then | ||
12 | /lib/runit-helper/runit-helper postrm "$@" | ||
13 | fi | ||
4 | 14 | ||
5 | # Local Variables: | 15 | # Local Variables: |
6 | # eval: (sh-set-shell "sh" t nil) | 16 | # eval: (sh-set-shell "sh" t nil) |
7 | # End: | 17 | # End: |
18 | # vim: ft=sh:sw=4 | ||