lib/demonz/drupal.rb in capistrano-demonz-0.0.14 vs lib/demonz/drupal.rb in capistrano-demonz-0.0.15
- old
+ new
@@ -258,10 +258,10 @@
update_script_file = File.join(latest_release, 'sites', 'all', 'scripts', release_name, 'update.sh')
if remote_file_exists?(update_script_file)
# Make sure script is executable.
run "#{try_sudo} chmod go+x #{update_script_file}"
- run "cd #{latest_release} && #{update_script_file}"
+ run "cd #{latest_release} && #{try_sudo} #{update_script_file}"
end
end
desc "Set release name for site"
task :update_visible_release_name, :roles => :web, :except => { :no_release => true } do