From 12b410fb5347eb7e52e7ac85faab4fd5859b448e Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 2 May 2023 15:07:14 +0000 Subject: [PATCH] fix: format --- .nfpm/postinstall.sh | 2 +- .nfpm/postremove.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.nfpm/postinstall.sh b/.nfpm/postinstall.sh index 929e3e821..c3e1de530 100755 --- a/.nfpm/postinstall.sh +++ b/.nfpm/postinstall.sh @@ -2,7 +2,7 @@ set -e if ! command -V systemctl >/dev/null 2>&1; then - echo "Not running SystemD, ignoring" + echo "Not running SystemD, ignoring" exit 0 fi diff --git a/.nfpm/postremove.sh b/.nfpm/postremove.sh index b94bb042b..a079424b3 100755 --- a/.nfpm/postremove.sh +++ b/.nfpm/postremove.sh @@ -1,6 +1,11 @@ #!/bin/sh set -e +if ! command -V systemctl >/dev/null 2>&1; then + echo "Not running SystemD, ignoring" + exit 0 +fi + systemctl stop soft.service systemctl disable soft.service systemctl daemon-reload