Skip to content

Commit

Permalink
Fix reprovisioning after VM restart
Browse files Browse the repository at this point in the history
Reprovisioning or server restart led to broken db connection according to:
brint#55 (comment)
  • Loading branch information
joe4dev committed Jan 19, 2017
1 parent 491cb13 commit 9385b53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@
action [:create, :start]
end

socket = "/var/run/mysql-#{db['instance_name']}/mysqld.sock"
directory '/var/run/mysqld' do
action :create
end

socket = "/var/run/mysql-#{db['instance_name']}/mysqld.sock"
if node['platform_family'] == 'debian'
link '/var/run/mysqld/mysqld.sock' do
to socket
Expand Down

0 comments on commit 9385b53

Please sign in to comment.