浏览代码

Fixes reloading on remove to always succeed.

j8
damencho 5 年前
父节点
当前提交
9344138303
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 1
    1
      debian/jitsi-meet-prosody.postrm
  2. 1
    1
      debian/jitsi-meet-tokens.postrm
  3. 2
    2
      debian/jitsi-meet-web-config.postrm

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

25
 case "$1" in
25
 case "$1" in
26
     remove)
26
     remove)
27
         if [ -x "/etc/init.d/prosody" ]; then
27
         if [ -x "/etc/init.d/prosody" ]; then
28
-            invoke-rc.d prosody reload
28
+            invoke-rc.d prosody reload || true
29
         fi
29
         fi
30
     ;;
30
     ;;
31
 
31
 

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

44
             sed -i 's/ -- "token_verification"/   "token_verification"/g' $PROSODY_HOST_CONFIG
44
             sed -i 's/ -- "token_verification"/   "token_verification"/g' $PROSODY_HOST_CONFIG
45
 
45
 
46
             if [ -x "/etc/init.d/prosody" ]; then
46
             if [ -x "/etc/init.d/prosody" ]; then
47
-                invoke-rc.d prosody restart
47
+                invoke-rc.d prosody restart || true
48
             fi
48
             fi
49
         fi
49
         fi
50
 
50
 

+ 2
- 2
debian/jitsi-meet-web-config.postrm 查看文件

25
 case "$1" in
25
 case "$1" in
26
     remove)
26
     remove)
27
         if [ -x "/etc/init.d/nginx" ]; then
27
         if [ -x "/etc/init.d/nginx" ]; then
28
-            invoke-rc.d nginx reload
28
+            invoke-rc.d nginx reload || true
29
         fi
29
         fi
30
         if [ -x "/etc/init.d/apache2" ]; then
30
         if [ -x "/etc/init.d/apache2" ]; then
31
-            invoke-rc.d apache2 reload
31
+            invoke-rc.d apache2 reload || true
32
         fi
32
         fi
33
     ;;
33
     ;;
34
     purge)
34
     purge)

正在加载...
取消
保存