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>
pull/30/head
Slávek Banko 5 years ago
parent 8e84cb1ed0
commit 03f2e384c3
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 "`which insserv 2>/dev/null`" ]; then
insserv tdm >/dev/null
insserv tdm >/dev/null || true
else
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

@ -35,7 +35,7 @@ fi
if [ "$1" = "purge" ] ; 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
if [ -d /run/systemd/system ] ; then

Loading…
Cancel
Save