Fixes reloading on remove to always succeed.

This commit is contained in:
damencho 2019-12-18 15:46:21 +00:00 committed by Дамян Минков
parent 6c3968a434
commit 9344138303
3 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ set -e
case "$1" in
remove)
if [ -x "/etc/init.d/prosody" ]; then
invoke-rc.d prosody reload
invoke-rc.d prosody reload || true
fi
;;

View File

@ -44,7 +44,7 @@ case "$1" in
sed -i 's/ -- "token_verification"/ "token_verification"/g' $PROSODY_HOST_CONFIG
if [ -x "/etc/init.d/prosody" ]; then
invoke-rc.d prosody restart
invoke-rc.d prosody restart || true
fi
fi

View File

@ -25,10 +25,10 @@ set -e
case "$1" in
remove)
if [ -x "/etc/init.d/nginx" ]; then
invoke-rc.d nginx reload
invoke-rc.d nginx reload || true
fi
if [ -x "/etc/init.d/apache2" ]; then
invoke-rc.d apache2 reload
invoke-rc.d apache2 reload || true
fi
;;
purge)