diff --git a/config/boot.rb b/config/boot.rb index 4b95b34..aead587 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -110,6 +110,7 @@ def install_debian_rails local_rails = File.dirname(__FILE__) + '/../vendor/rails' debian_rails = ['/usr/share/rails-ruby1.8', '/usr/lib/ruby/vendor_ruby/rails'].find { |d| File.exists?(d) } if !File.exist?(local_rails) && File.exists?(debian_rails) + File.delete(local_rails) if File.symlink?(local_rails) # remove dangling symlink puts "I: Installing Debian-installed Rails from /usr/share/rails into vendor/rails." recommended_rails_version = Rails::GemBoot.gem_version puts "I: Please note that the recommended Rails version is #{recommended_rails_version}, and that other versions might not work" -- libgit2 0.21.2