DEB tdebase: Ignore the result of the insserv and update-rc.d calls

in postinst/postrm scripts. This will prevent failure due to errors
in the init scripts of other packages.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 03f2e384c3)
pull/92/head
Slávek Banko 5 years ago
parent 52179e8c44
commit b89ef6e33b
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -144,10 +144,10 @@ esac
if [ -x "/etc/init.d/tdm" ]; then if [ -x "/etc/init.d/tdm" ]; then
if [ -x "`which insserv 2>/dev/null`" ]; then if [ -x "`which insserv 2>/dev/null`" ]; then
insserv tdm >/dev/null insserv tdm >/dev/null || true
else else
if [ -x "`which update-rc.d 2>/dev/null`" ]; then if [ -x "`which update-rc.d 2>/dev/null`" ]; then
update-rc.d tdm defaults 13 01 >/dev/null update-rc.d tdm defaults 13 01 >/dev/null || true
fi fi
fi fi
fi fi

@ -35,7 +35,7 @@ fi
if [ "$1" = "purge" ] ; then if [ "$1" = "purge" ] ; then
if [ -x "`which update-rc.d 2>/dev/null`" ]; then if [ -x "`which update-rc.d 2>/dev/null`" ]; then
update-rc.d tdm remove >/dev/null update-rc.d tdm remove >/dev/null || true
fi fi
fi fi
if [ -d /run/systemd/system ] ; then if [ -d /run/systemd/system ] ; then

Loading…
Cancel
Save