Skip to content

Commit

Permalink
PMM-1258 Implement DISABLE_UPDATES functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
delgod committed Nov 7, 2017
1 parent d52f4c7 commit 69a5652
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ if [ -n "$SERVER_PASSWORD" ]; then
pmm-configure -skip-prometheus-reload true -grafana-db-path /var/lib/grafana/grafana.db || :
fi

# Hide update button
if [[ $DISABLE_UPDATES =~ ^(1|t|T|TRUE|true|True)$ ]]; then
sed -i "s/fa-refresh/fa-refresh hidden/" /usr/share/pmm-server/landing-page/index.html
fi

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

0 comments on commit 69a5652

Please sign in to comment.