Commit ed82f6c6 by Torkel Ödegaard

Added upgrade step that moves sqlite3 database to new location, #1758

parent d4e6ae28
......@@ -30,6 +30,13 @@ case "$1" in
"$GRAFANA_USER"
fi
if [ -x /opt/grafana/data/grafana.db ]; then
echo "### Upgrading Notice ### "
echo "-- New grafana install home is /usr/share/grafana"
echo "-- Moving sqlite3 database to /var/lib/grafana/"
echo "-- Notice: service name && binary changed to grafana-server"
fi
# Set user permissions on /var/log/grafana, /var/lib/grafana
mkdir -p /var/log/grafana /var/lib/grafana
chown -R $GRAFANA_USER:$GRAFANA_GROUP /var/log/grafana /var/lib/grafana
......
......@@ -37,6 +37,13 @@ if [ $1 -eq 1 ] ; then
-c "grafana user" grafana
fi
if [ -x /opt/grafana/data/grafana.db ]; then
echo "### Upgrading Notice ### "
echo "-- New grafana install home is /usr/share/grafana"
echo "-- Moving sqlite3 database to /var/lib/grafana/"
echo "-- Notice: service name && binary changed to grafana-server"
fi
# Set user permissions on /var/log/grafana, /var/lib/grafana
mkdir -p /var/log/grafana /var/lib/grafana
chown -R $GRAFANA_USER:$GRAFANA_GROUP /var/log/grafana /var/lib/grafana
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment