diff --git a/recipes/database.rb b/recipes/database.rb index 282843c..160147b 100644 --- a/recipes/database.rb +++ b/recipes/database.rb @@ -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