Permalink
Browse files

cd into directory before command run

  • Loading branch information...
1 parent ca9cb0a commit 14bf6aa4124e4ac632f65a035a09285dfdd13a4e @rossriley rossriley committed Nov 2, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/obbistrano_tasks.rb
  2. +1 −1 obbistrano.gemspec
@@ -247,8 +247,8 @@
set :user_to_config, "#{user}"
begin
with_user("root", "#{root_pass}") do
- run "ln -s /etc/nginx/sites-enabled/#{user_to_config}.conf #{deploy_to}/app/platform/nginx.conf"
- run "ln -s /etc/apache2/sites-enabled/#{user_to_config}.conf #{deploy_to}/app/platform/apache.conf"
+ run "cd /home/#{user_to_config}/ && ln -s /etc/nginx/sites-enabled/#{user_to_config}.conf #{deploy_to}/app/platform/nginx.conf"
+ run "cd /home/#{user_to_config}/ && ln -s /etc/apache2/sites-enabled/#{user_to_config}.conf #{deploy_to}/app/platform/apache.conf"
end
user_cron_tasks = capture("cat #{deploy_to}/app/platform/crontab")
run write_crontab(user_cron_tasks)
View
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{obbistrano}
- s.version = "1.1.62"
+ s.version = "1.1.63"
s.authors = ["Ross Riley", "One Black Bear"]
s.date = Time.now
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=

0 comments on commit 14bf6aa

Please sign in to comment.