29 lines
504 B
Bash
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
|
|
|