From 03f2e384c3a6d25d59b3569cfe1291c443567aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 28 Nov 2019 03:51:59 +0100 Subject: 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- debian/_base/tdebase/debian/tdm-trinity.postinst | 4 ++-- debian/_base/tdebase/debian/tdm-trinity.postrm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'debian/_base') diff --git a/debian/_base/tdebase/debian/tdm-trinity.postinst b/debian/_base/tdebase/debian/tdm-trinity.postinst index 253b73bf5..aa9808c7e 100644 --- a/debian/_base/tdebase/debian/tdm-trinity.postinst +++ b/debian/_base/tdebase/debian/tdm-trinity.postinst @@ -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 diff --git a/debian/_base/tdebase/debian/tdm-trinity.postrm b/debian/_base/tdebase/debian/tdm-trinity.postrm index 0cd027c45..f20297bab 100644 --- a/debian/_base/tdebase/debian/tdm-trinity.postrm +++ b/debian/_base/tdebase/debian/tdm-trinity.postrm @@ -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 -- cgit v1.2.1