monasca-thresh/thresh/src/deb/control/postinst

17 lines
298 B
Bash
Executable File

#!/bin/sh
case "$1" in
configure)
chmod +x /etc/init.d/mon-thresh
if ! [ `getent passwd thresh` ]; then
adduser --system --group thresh
fi
#Restart does not pick up upstart job config changes stop/start is needed
stop mon-thresh
start mon-thresh
;;
esac
exit 0