uhub/debian/uhub.postinst
2010-01-26 17:27:34 +01:00

29 lines
504 B
Bash

#!/bin/sh
set -e
case "$1" in
configure)
chmod 0750 /var/log/uhub
chmod 0755 /var/run/uhub
if [ -x /etc/init.d/uhub ]; then
update-rc.d uhub defaults >/dev/null
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d uhub restart
else
/etc/init.d/uhub restart
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst: error: unknown argument: $1" >&2
exit 1
;;
esac