obbistrano 1.1.61 → 1.1.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -244,10 +244,11 @@ Capistrano::Configuration.instance(:must_exist).load do
244
244
  task :install, :roles =>[:host] do
245
245
  host.config_check
246
246
  host.needs_root
247
+ set :user_to_config, "#{user}"
247
248
  begin
248
249
  with_user("root", "#{root_pass}") do
249
- run "ln -s /etc/nginx/sites-enabled/#{user}.conf #{deploy_to}/app/platform/nginx.conf"
250
- run "ln -s /etc/apache2/sites-enabled/#{user}.conf #{deploy_to}/app/platform/apache.conf"
250
+ run "ln -s /etc/nginx/sites-enabled/#{user_to_config}.conf #{deploy_to}/app/platform/nginx.conf"
251
+ run "ln -s /etc/apache2/sites-enabled/#{user_to_config}.conf #{deploy_to}/app/platform/apache.conf"
251
252
  end
252
253
  user_cron_tasks = capture("cat #{deploy_to}/app/platform/crontab")
253
254
  run write_crontab(user_cron_tasks)
data/obbistrano.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.1.61"
5
+ s.version = "1.1.62"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.date = Time.now
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 61
9
- version: 1.1.61
8
+ - 62
9
+ version: 1.1.62
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ross Riley