Files
recorder/etc/debian/postinst
2015-09-27 11:45:28 +02:00

32 lines
742 B
Bash

#!/bin/sh
#
set -e
case "$1" in
configure)
getent group owntracks > /dev/null || /usr/sbin/groupadd -r owntracks
chgrp owntracks /var/spool/owntracks/recorder/store
chgrp owntracks /var/spool/owntracks/recorder/store/ghash
chgrp owntracks /usr/local/bin/ocat /usr/local/sbin/ot-recorder
chmod 3755 /usr/local/bin/ocat /usr/local/sbin/ot-recorder
/usr/local/bin/ocat --load=luadb < /dev/null
/usr/local/bin/ocat --load=topic2tid < /dev/null
;;
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