Skip to content

Commit

Permalink
PMM-1474 fix rights if data exists
Browse files Browse the repository at this point in the history
  • Loading branch information
delgod committed Sep 14, 2017
1 parent 0c85a55 commit 186afff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ fi

# Upgrade
if [ -f /var/lib/grafana/grafana.db ]; then
chown -R mysql:mysql /var/lib/mysql
chown -R grafana:grafana /var/lib/grafana
chown -R pmm:pmm /opt/consul-data
chown -R pmm:pmm /opt/prometheus/data
chown -R mysql:mysql /var/lib/mysql
chown -R grafana:grafana /var/lib/grafana
fi

# copy SSL, follow links
Expand Down

0 comments on commit 186afff

Please sign in to comment.