mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-20 06:58:01 +02:00
30 lines
613 B
Bash
30 lines
613 B
Bash
#!/bin/sh
|
|
# postinst script for padpoint
|
|
|
|
case "$1" in
|
|
configure)
|
|
ldconfig
|
|
if test ! -e /etc/padpoint.conf ; then
|
|
cp /usr/share/doc/padpoint/padpoint.conf-sample /etc/padpoint.conf
|
|
fi
|
|
/bin/systemctl daemon-reload
|
|
/bin/systemctl enable padpoint
|
|
/bin/systemctl restart padpoint
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
# generated by other debhelper scripts.
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|