diff --git a/.nfpm/postinstall.sh b/.nfpm/postinstall.sh index 929e3e821be5d5525c326bf7939b4321050bf223..c3e1de5300fe44cd774c145abc1744c1fceba2f3 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 b94bb042bd461e2ee5ad1796df51ec36fa79dc11..a079424b31ed51e1151d950a4165930462fcfb8e 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