.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
Carlos Alexandro Becker created
.nfpm/postinstall.sh | 2 +-
.nfpm/postremove.sh | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
@@ -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
@@ -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