[mod] Remove check whether Duniter is running before stopping it

Use to break the remove script, and bring in a state between installed
and uninstalled app

systemctl returns 0 in case duniter service is not running
This commit is contained in:
Moul 2020-06-29 18:13:30 +02:00
parent cccdc6e733
commit c8b724c49d
1 changed files with 2 additions and 5 deletions

View File

@ -53,11 +53,8 @@ CONFIG_NGINX () {
}
REMOVE_DUNITER () {
# Stop duniter daemon if running
duniter status
if [ `echo "$?"` == 0 ]; then
systemctl stop duniter
fi
# Stop duniter daemon
systemctl stop duniter
# Remove Duniter package
dpkg -r duniter