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
9systemd-sysusers
10systemd-tmpfiles --create
11
12echo "Enabling and starting soft-server.service"
13systemctl daemon-reload
14systemctl unmask soft-serve.service
15systemctl preset soft-serve.service
16systemctl enable soft-serve.service
17systemctl restart soft-serve.service