1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[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

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