templates/sidekiq/config/rubber/deploy-sidekiq.rb in rubber-2.4.0 vs templates/sidekiq/config/rubber/deploy-sidekiq.rb in rubber-2.4.1

- old
+ new

@@ -8,10 +8,10 @@ after "deploy:start", "rubber:sidekiq:start" after "deploy:restart", "rubber:sidekiq:restart" desc "Quiet sidekiq (stop accepting new work)" task :quiet, :roles => :sidekiq do - rsudo "cd #{current_path} && if [ -f #{current_path}/tmp/pids/sidekiq.pid ]; then bundle exec sidekiqctl quiet #{current_path}/tmp/pids/sidekiq.pid ; fi", :as => rubber_env.app_user + rsudo "if [ -d #{current_path} ]; then cd #{current_path} && if [ -f #{current_path}/tmp/pids/sidekiq.pid ]; then bundle exec sidekiqctl quiet #{current_path}/tmp/pids/sidekiq.pid ; fi; fi", :as => rubber_env.app_user end desc "Stop sidekiq" task :stop, :roles => :sidekiq do # Allow workers up to 60 seconds to finish their processing.