diff --git a/lib/capistrano/tasks/capistrano2.rb b/lib/capistrano/tasks/capistrano2.rb index 3ceb87f..5ccfc9e 100644 --- a/lib/capistrano/tasks/capistrano2.rb +++ b/lib/capistrano/tasks/capistrano2.rb @@ -58,7 +58,7 @@ def for_each_role def run_as(cmd) su_user = fetch(:sidekiq_user) - run cdm, roles: sidekiq_role, shell: "su - #{su_user}" + run cmd, roles: sidekiq_role, shell: "su - #{su_user}" end def quiet_process(pid_file, idx, sidekiq_role)