mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 21:42:21 +03:00
29 lines
424 B
Bash
29 lines
424 B
Bash
#!/bin/sh
|
|
# postinst script for ahenk
|
|
#
|
|
# see: dh_installdeb(1)
|
|
|
|
set -e
|
|
|
|
|
|
case "$1" in
|
|
configure)
|
|
|
|
systemctl --system daemon-reload
|
|
systemctl enable ahenk.service
|
|
|
|
update-rc.d ahenk defaults
|
|
/etc/init.d/ahenk start
|
|
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|