packaging: added rpm posttrans script to fix config file change, fixes #7686

This commit is contained in:
Torkel Ödegaard
2017-03-21 10:36:15 +01:00
parent 5ecc8a171f
commit 99064603a4
3 changed files with 44 additions and 11 deletions
Regular → Executable
-7
View File
@@ -68,13 +68,6 @@ if [ $1 -eq 1 ] ; then
echo " sudo service grafana-server start"
fi
elif [ $1 -ge 2 ] ; then
if [ -x /opt/grafana/ ]; then
echo "### Upgrading Notice ### "
echo "-- New grafana install home is /usr/share/grafana"
echo "-- Please move sqlite3 database to /var/lib/grafana/"
echo "-- Notice: service name && binary changed to grafana-server"
fi
if [ "$RESTART_ON_UPGRADE" == "true" ]; then
stopGrafana
startGrafana