diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-11-28 03:51:59 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-11-28 03:51:59 +0100 |
commit | 03f2e384c3a6d25d59b3569cfe1291c443567aa5 (patch) | |
tree | ad419f0fdd93e857f833a2764e07addb514135c0 /debian/_base | |
parent | 8e84cb1ed0f7c5d54978e13266dceb2b2203921b (diff) | |
download | tde-packaging-03f2e384c3a6d25d59b3569cfe1291c443567aa5.tar.gz tde-packaging-03f2e384c3a6d25d59b3569cfe1291c443567aa5.zip |
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>
Diffstat (limited to 'debian/_base')
-rw-r--r-- | debian/_base/tdebase/debian/tdm-trinity.postinst | 4 | ||||
-rw-r--r-- | debian/_base/tdebase/debian/tdm-trinity.postrm | 2 |
2 files changed, 3 insertions, 3 deletions
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 |