From 0be3202a4c06e04371288f5afb297632d71e876f Mon Sep 17 00:00:00 2001 From: Stephen Lumenta Date: Tue, 13 Jan 2009 02:51:38 +0800 Subject: [PATCH] added apache:install task Signed-off-by: Joshua Peek --- lib/capistrano/ext/slicehost/apache.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/capistrano/ext/slicehost/apache.rb b/lib/capistrano/ext/slicehost/apache.rb index 0fa62dc..7ea1e7d 100644 --- a/lib/capistrano/ext/slicehost/apache.rb +++ b/lib/capistrano/ext/slicehost/apache.rb @@ -81,4 +81,9 @@ put render("vhost", binding), application sudo "mv #{application} /etc/apache2/sites-available/#{application}" end + + desc "Install Apache" + task :install, :roles => :web do + sudo "aptitude install -y apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert" + end end