[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:
parent
cccdc6e733
commit
c8b724c49d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue