lib/demonz/drupal.rb in capistrano-demonz-0.0.23 vs lib/demonz/drupal.rb in capistrano-demonz-0.0.24

- old
+ new

@@ -315,10 +315,13 @@ when remote_file_exists?("#{drupal_app_site_dir}/settings.#{stage}.php") run "#{try_sudo} cp -fL #{drupal_app_site_dir}/settings.#{stage}.php #{drupal_app_site_dir}/settings.php" else logger.important "Failed to symlink the settings.php file in #{drupal_app_site_dir} because an unknown pattern was used" end + + # Make sure the user owns it + run "#{try_sudo} chown -R #{user}:#{group} #{drupal_app_site_dir}/settings.php" end desc "Migrate old database to new release" task :migrate, :roles => :web, :except => { :no_release => true } do uses_sass = fetch(:uses_sass, false) @@ -397,10 +400,10 @@ if variables.include?(:cleanup_releases) cleanup_releases = fetch(:cleanup_releases, nil) if !cleanup_releases.nil? files_backups = cleanup_releases.map { |release| - File.join(backups_path, "file_before_#{release}.tar.gz") }.join(" ") + File.join(backups_path, "files_before_#{release}.tar.gz") }.join(" ") try_sudo "rm -rf #{files_backups}" end end end end