Browse Source

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.
master
damencho 5 years ago
parent
commit
4d0cbff5a1

+ 1
- 1
debian/jitsi-meet-prosody.postinst View File

@@ -179,7 +179,7 @@ case "$1" in
179 179
         fi
180 180
 
181 181
         if [ "$PROSODY_CONFIG_PRESENT" = "false" ]; then
182
-            invoke-rc.d prosody restart
182
+            invoke-rc.d prosody restart || true
183 183
         fi
184 184
     ;;
185 185
 

+ 1
- 1
debian/jitsi-meet-tokens.postinst View File

@@ -78,7 +78,7 @@ case "$1" in
78 78
                 fi
79 79
 
80 80
                 if [ -x "/etc/init.d/prosody" ]; then
81
-                    invoke-rc.d prosody restart
81
+                    invoke-rc.d prosody restart || true
82 82
                 fi
83 83
             fi
84 84
         else

+ 3
- 3
debian/jitsi-meet-web-config.postinst View File

@@ -167,7 +167,7 @@ case "$1" in
167 167
 
168 168
             db_set jitsi-meet/jvb-serve "true"
169 169
 
170
-            invoke-rc.d jitsi-videobridge restart
170
+            invoke-rc.d jitsi-videobridge restart || true
171 171
         elif [[ "$FORCE_NGINX" = "true" && ( -z "$JVB_HOSTNAME_OLD" || "$RECONFIGURING" = "true" ) ]] ; then
172 172
             # this is a reconfigure, lets just delete old links
173 173
             if [ "$RECONFIGURING" = "true" ] ; then
@@ -196,7 +196,7 @@ case "$1" in
196 196
                     /etc/nginx/sites-available/$JVB_HOSTNAME.conf
197 197
             fi
198 198
 
199
-            invoke-rc.d nginx reload
199
+            invoke-rc.d nginx reload || true
200 200
         elif [[ "$FORCE_APACHE" = "true" && ( -z "$JVB_HOSTNAME_OLD" || "$RECONFIGURING" = "true" ) ]] ; then
201 201
             # this is a reconfigure, lets just delete old links
202 202
             if [ "$RECONFIGURING" = "true" ] ; then
@@ -225,7 +225,7 @@ case "$1" in
225 225
                     /etc/apache2/sites-available/$JVB_HOSTNAME.conf
226 226
             fi
227 227
 
228
-            invoke-rc.d apache2 reload
228
+            invoke-rc.d apache2 reload || true
229 229
         fi
230 230
 
231 231
         echo "----------------"

Loading…
Cancel
Save