Skip to content

Commit

Permalink
PMM-1771 create pmm-managed db during docker update
Browse files Browse the repository at this point in the history
  • Loading branch information
delgod committed Nov 24, 2017
1 parent 4359006 commit 13aa48c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ stderr_logfile = /var/log/createdb.log
startretries = 60
autorestart = unexpected

# support pmm-data containers <1.5.0
[program:createdb2]
priority = 8
# Sleep to wait for mysql to start up.
command = bash -c 'sleep 5 && mysql -vv -e "CREATE DATABASE IF NOT EXISTS \`pmm-managed\`; GRANT ALL PRIVILEGES ON \`pmm-managed\`.* TO \"pmm-managed\"@localhost IDENTIFIED BY \"pmm-managed\""'
stdout_logfile = /var/log/createdb2.log
stderr_logfile = /var/log/createdb2.log
startretries = 60
autorestart = unexpected

[program:orchestrator]
priority = 9
user = pmm
Expand Down

0 comments on commit 13aa48c

Please sign in to comment.