Files
Trash-Bin/root/DEBIAN/postinst
Cantibra 3c4be080d5
All checks were successful
Trash Bin / Trash Bin [arm64] (push) Successful in 11s
Trash Bin / Trash Bin [amd64] (push) Successful in 11s
Inital Commit
2025-10-26 21:11:06 +01:00

39 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' 2>&1 || \
/usr/bin/true
fi
case "${1}" in
configure)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper unmask 'trash-bin.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if /usr/bin/deb-systemd-helper --quiet was-enabled 'trash-bin.timer'; then
/usr/bin/deb-systemd-helper enable 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
else
/usr/bin/deb-systemd-helper update-state 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
if [ -n "${2}" ]; then
_dh_action='restart'
else
_dh_action='start'
fi
/usr/bin/deb-systemd-invoke "${_dh_action}" 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
esac