Files
WSDD/wsdd/DEBIAN/postinst
T
Cantibra 2181927a60
WSDD / WSDD (amd64, cicd.any, bookworm trixie noble, main) (push) Successful in 12s
WSDD / WSDD (arm64, cicd.any, bookworm trixie noble, main) (push) Successful in 17s
Initialize Git Repository: 'WSDD'
2026-05-04 21:22:11 +02:00

38 lines
1.1 KiB
Bash

#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' || true
fi
case "${1}" in
configure)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper unmask 'wsdd.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if /usr/bin/deb-systemd-helper --quiet was-enabled 'wsdd.service'; then
/usr/bin/deb-systemd-helper enable 'wsdd.service' > '/dev/null' 2>&1 || \
/usr/bin/true
else
/usr/bin/deb-systemd-helper update-state 'wsdd.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if [ -x '/etc/init.d/wsdd' ]; then
/usr/sbin/update-rc.d 'wsdd' defaults > '/dev/null' || true
fi
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' || true
if [ -n "${2}" ]; then
_dh_action='restart'
else
_dh_action='start'
fi
/usr/bin/deb-systemd-invoke "${_dh_action}" 'wsdd.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
esac