3 # arg 1: the new package version
4 # arg 2: the old package version
6 if (( "$(vercmp $2 2.6.0-3)" < 0 )); then
7 echo '==> Configuration moved to /etc/grafana.ini'
9 if (( "$(vercmp $2 4.4.3-1)" < 0 )); then
10 echo '==> Grafana now uses static UID/GID 207'
11 echo '==> Trying to update your previous UID/GID'
12 if ! { usermod -u 207 grafana && groupmod -g 207 grafana &&
13 chown -R 207:207 /var/{lib,log}/grafana; }; then
14 echo '==> Automatic GID/UID change failed. Do it manually!'
15 echo '==> usermod -g 207 grafana && groupmod -u 207 grafana && chown -R 207:207 /var/l{ib,og}/grafana'
17 echo '==> Check the ownership of your files!'
22 # vim:set ts=2 sw=2 et: