Files
logwisp/deploy/package/deb/postinst
T
lixen 60abc97eb0
Package / arch (push) Canceled after 0s
Package / deb (push) Canceled after 0s
Package / freebsd (push) Canceled after 0s
Package / image (push) Canceled after 0s
Test / test (push) Canceled after 0s
Test / e2e (push) Canceled after 0s
v0.27.0 packaging update
2026-10-05 15:12:37 -04:00

14 lines
604 B
Bash
Executable File

#!/bin/sh
# sysusers and tmpfiles need no running systemd (a chroot); a first install
# leaves the service to systemctl enable --now logwisp, an upgrade restarts it
# if it runs. As in debhelper's scripts, only the account is fatal.
set -e
if [ "$1" = configure ]; then
if command -v systemd-sysusers >/dev/null; then systemd-sysusers logwisp.conf; fi
if command -v systemd-tmpfiles >/dev/null; then systemd-tmpfiles --create logwisp.conf || true; fi
if [ -d /run/systemd/system ]; then
systemctl daemon-reload || true
if [ -n "$2" ]; then systemctl try-restart logwisp.service || true; fi
fi
fi