lib/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb in rubber-1.14.1 vs lib/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb in rubber-1.15.0

- old
+ new

@@ -11,10 +11,10 @@ rubber.sudo_script 'install_passenger', <<-ENDSCRIPT # can't use passenger_lib from rubber here as it only evaluates correctly # when variable interpolation of rvm_gem_home is run remotely, and since we # are in cap, we run the interpolation locally # - passenger_lib=$(find /usr/local/rvm -path "*/passenger-#{rubber_env.passenger_version}/*/mod_passenger.so" 2> /dev/null) + passenger_lib=$(find /usr/local/rvm/gems/`rvm current` -path "*/passenger-#{rubber_env.passenger_version}/*/mod_passenger.so" 2> /dev/null) if [[ -z $passenger_lib ]]; then echo -en "\n\n\n\n" | passenger-install-apache2-module rvm #{rubber_env.rvm_ruby} --passenger fi ENDSCRIPT