recipiez 0.5.14 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/recipiez/version.rb +1 -1
- data/recipes/apache.rb +5 -1
- metadata +2 -2
data/lib/recipiez/version.rb
CHANGED
data/recipes/apache.rb
CHANGED
@@ -40,7 +40,11 @@ Capistrano::Configuration.instance(true).load do
|
|
40
40
|
desc "Install mongo to php"
|
41
41
|
task :mongo_php do
|
42
42
|
sudo "apt-get install -y php-pear php5-dev"
|
43
|
-
|
43
|
+
begin
|
44
|
+
sudo "pecl install mongo"
|
45
|
+
rescue
|
46
|
+
puts "Error installing mongo."
|
47
|
+
end
|
44
48
|
put render("mongo_ini", binding), "mongo_ini"
|
45
49
|
sudo "mv mongo_ini /etc/php5/conf.d/mongo.ini"
|
46
50
|
sudo "/etc/init.d/apache2 reload"
|