#/bin/sh

# arg 1:  the new package version
post_install() {
  systemd-sysusers grafana.conf
  systemd-tmpfiles --create grafana.conf
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  post_install "$1"
  if (( "$(vercmp $2 2.6.0-3)" < 0 )); then
		echo '==> Configuration moved to /etc/grafana.ini'
	fi
  return 0
}


# vim:set ts=2 sw=2 et:
