postinstall.sh
1#!/bin/sh
2set -e
3
4if ! command -V systemctl >/dev/null 2>&1; then
5 echo "Not running SystemD, ignoring"
6 exit 0
7fi
8
9echo "Enabling and starting soft.service"
10systemctl daemon-reload
11systemctl unmask soft.service
12systemctl preset soft.service
13systemctl enable soft.service
14systemctl restart soft.service