From 4d0cbff5a1b4dff9da83f3d7bd09c9d925cee7e4 Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 2 Dec 2019 13:33:35 +0000 Subject: [PATCH] Ignore errors when restarting services. Sometimes conflicting or wrong configuration can leave the package in broken state and users cannot even uninstall/purge the packages, and it also breaks any other package installation. --- debian/jitsi-meet-prosody.postinst | 2 +- debian/jitsi-meet-tokens.postinst | 2 +- debian/jitsi-meet-web-config.postinst | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/jitsi-meet-prosody.postinst b/debian/jitsi-meet-prosody.postinst index 7115f28c8..0bd621d9b 100644 --- a/debian/jitsi-meet-prosody.postinst +++ b/debian/jitsi-meet-prosody.postinst @@ -179,7 +179,7 @@ case "$1" in fi if [ "$PROSODY_CONFIG_PRESENT" = "false" ]; then - invoke-rc.d prosody restart + invoke-rc.d prosody restart || true fi ;; diff --git a/debian/jitsi-meet-tokens.postinst b/debian/jitsi-meet-tokens.postinst index 77c142ee3..431320290 100644 --- a/debian/jitsi-meet-tokens.postinst +++ b/debian/jitsi-meet-tokens.postinst @@ -78,7 +78,7 @@ case "$1" in fi if [ -x "/etc/init.d/prosody" ]; then - invoke-rc.d prosody restart + invoke-rc.d prosody restart || true fi fi else diff --git a/debian/jitsi-meet-web-config.postinst b/debian/jitsi-meet-web-config.postinst index 36cbae291..900080e1a 100644 --- a/debian/jitsi-meet-web-config.postinst +++ b/debian/jitsi-meet-web-config.postinst @@ -167,7 +167,7 @@ case "$1" in db_set jitsi-meet/jvb-serve "true" - invoke-rc.d jitsi-videobridge restart + invoke-rc.d jitsi-videobridge restart || true elif [[ "$FORCE_NGINX" = "true" && ( -z "$JVB_HOSTNAME_OLD" || "$RECONFIGURING" = "true" ) ]] ; then # this is a reconfigure, lets just delete old links if [ "$RECONFIGURING" = "true" ] ; then @@ -196,7 +196,7 @@ case "$1" in /etc/nginx/sites-available/$JVB_HOSTNAME.conf fi - invoke-rc.d nginx reload + invoke-rc.d nginx reload || true elif [[ "$FORCE_APACHE" = "true" && ( -z "$JVB_HOSTNAME_OLD" || "$RECONFIGURING" = "true" ) ]] ; then # this is a reconfigure, lets just delete old links if [ "$RECONFIGURING" = "true" ] ; then @@ -225,7 +225,7 @@ case "$1" in /etc/apache2/sites-available/$JVB_HOSTNAME.conf fi - invoke-rc.d apache2 reload + invoke-rc.d apache2 reload || true fi echo "----------------"