uhub/debian/uhub.postinst

29 lines
504 B
Plaintext
Raw Normal View History

2010-01-26 16:00:55 +00:00
#!/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