2014-02-09 18:43:43 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure|configure)
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "Starting drone ..."
|
|
|
|
if [ -f /etc/init/drone.conf ]; then
|
|
|
|
if pidof /usr/local/bin/droned >/dev/null; then
|
|
|
|
service drone stop || exit $?
|
|
|
|
fi
|
|
|
|
service drone start && echo "Drone started."
|
|
|
|
fi
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
|
2014-06-04 21:25:38 +00:00
|
|
|
exit 0
|