monasca-api/src/deb/control/postinst

14 lines
165 B
Bash
Executable File

#!/bin/sh
case "$1" in
configure)
if ! [ `getent passwd mon_api` ]; then
adduser --system --group mon_api
fi
restart mon-api
;;
esac
exit 0