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:54:11 +0100 |
commit | b89ef6e33b01fa4dd5823c6cf00ec7793afe4bd9 (patch) | |
tree | d6c98fae4cfb30fd9b8a27b6d35d2b3390753b39 | |
parent | 52179e8c44df42c708bf764143dd8398075ff5d8 (diff) | |
download | tde-packaging-b89ef6e33b01fa4dd5823c6cf00ec7793afe4bd9.tar.gz tde-packaging-b89ef6e33b01fa4dd5823c6cf00ec7793afe4bd9.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>
(cherry picked from commit 03f2e384c3a6d25d59b3569cfe1291c443567aa5)
-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 |