From c8b724c49d57da7ec3a7fa904f6dd71315edf734 Mon Sep 17 00:00:00 2001 From: Moul Date: Mon, 29 Jun 2020 18:13:30 +0200 Subject: [PATCH] [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 --- scripts/functions.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 62cbd47..50247f6 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -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