case "$ACTION" in
post)
if [ "$UPDATE" = "yes" ] ; then
:
else
chown _grafana:_grafana /var/lib/grafana
fi
;;
esac