瀏覽代碼

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 年之前
父節點
當前提交
4d0cbff5a1
共有 3 個檔案被更改,包括 5 行新增5 行删除
  1. 1
    1
      debian/jitsi-meet-prosody.postinst
  2. 1
    1
      debian/jitsi-meet-tokens.postinst
  3. 3
    3
      debian/jitsi-meet-web-config.postinst

+ 1
- 1
debian/jitsi-meet-prosody.postinst 查看文件

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

+ 1
- 1
debian/jitsi-meet-tokens.postinst 查看文件

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

+ 3
- 3
debian/jitsi-meet-web-config.postinst 查看文件

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

Loading…
取消
儲存