Permalink
Browse files

download a proper libmysql for php+5.5

  • Loading branch information...
1 parent 16462f4 commit d432e247c5ab2e1874f75ba6dba21ccc0a28979e @acco acco committed Sep 22, 2012
Showing with 25 additions and 0 deletions.
  1. +5 −0 cookbooks/libmysql/README.md
  2. +20 −0 cookbooks/libmysql/recipes/default.rb
@@ -0,0 +1,5 @@
+TO USE:
+
+1. Use this set of cookbooks or drop this folder (libmysql) into whatever cookbooks you're using
+2. Add/uncomment `require_recipe libmsql` to cookbooks/main/recipes/default.rb
+3. Upload & apply!
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: libmysql
+# Recipe:: default
+#
+install_path = '/usr/lib64/libmysqlclient_r.so.15'
+
+if ['solo','app','app_master'].include?(node[:instance_role])
+ ey_cloud_report "downloading libmysql" do
+ message "downloading libmysql"
+ end
+end
+
+execute "download-libmysql" do
+ command 'wget -O /usr/lib64/libmysqlclient.so.15 https://dl.dropbox.com/u/9398197/libmysqlclient_r.so.15'
+ command 'chmod 755 /usr/lib64/libmysqlclient.so.15'
+end
+
+service "php-fpm" do
+ :restart
+end

0 comments on commit d432e24

Please sign in to comment.