2624e60ee751ddd86b8d4588e97d774a576bc430

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

fix(nfpm): don't enable and start systemd service by default

Diff

 1diff --git a/.nfpm/postinstall.sh b/.nfpm/postinstall.sh
 2index 85b4f8a68972f491a3147344cf847505a46f161f..40400b0ee9623eb572f8752297001d6670ac258c 100755
 3--- a/.nfpm/postinstall.sh
 4+++ b/.nfpm/postinstall.sh
 5@@ -9,9 +9,6 @@ fi
 6 systemd-sysusers
 7 systemd-tmpfiles --create
 8 
 9-echo "Enabling and starting soft-server.service"
10 systemctl daemon-reload
11 systemctl unmask soft-serve.service
12 systemctl preset soft-serve.service
13-systemctl enable soft-serve.service
14-systemctl restart soft-serve.service
15diff --git a/.nfpm/postremove.sh b/.nfpm/postremove.sh
16index 64392df5f5f135e12c26b8f1ad6779d9f31a5844..d4da1b6780b4483f095832755447af10839f0ea3 100755
17--- a/.nfpm/postremove.sh
18+++ b/.nfpm/postremove.sh
19@@ -6,9 +6,6 @@ if ! command -V systemctl >/dev/null 2>&1; then
20 	exit 0
21 fi
22 
23-echo "Disabling and starting soft-server.service"
24-systemctl stop soft-serve.service
25-systemctl disable soft-serve.service
26 systemctl daemon-reload
27 systemctl reset-failed
28