mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-29 09:42:23 +03:00
30 lines
424 B
Text
30 lines
424 B
Text
|
#!/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
|