Fixing MySQL first boot
This commit is contained in:
parent
0aa4bef236
commit
506ac453f6
1 changed files with 2 additions and 1 deletions
|
@ -146,6 +146,7 @@ template '/etc/mysql/mariadb.conf.d/50-server.cnf' do
|
|||
end
|
||||
|
||||
directory '/var/run/mysqld' do
|
||||
user 'root'
|
||||
action :create
|
||||
owner 'vagrant'
|
||||
group 'vagrant'
|
||||
|
@ -158,7 +159,7 @@ service 'mysql' do
|
|||
end
|
||||
|
||||
execute 'mysql_create_databases' do
|
||||
user 'root'
|
||||
user 'vagrant'
|
||||
notifies :stop, 'service[mysql]', :before
|
||||
command '/usr/bin/env mysql_install_db'
|
||||
creates '/vagrant/mysql/data/mysql'
|
||||
|
|
Reference in a new issue