Skip to content

Commit

Permalink
Merge pull request #23633 from code-dot-org/fix-restart-server-cron-job
Browse files Browse the repository at this point in the history
Fix path in restart server cron job
  • Loading branch information
sureshc committed Jul 12, 2018
2 parents def8a65 + 90be7f9 commit a5d2d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cron/restart_high_memory_frontend_services
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def main
restart_command = 'sudo service dashboard upgrade && sudo service pegasus upgrade'

# Copy SSH configuration needed to "fanout" to each front end server.
FileUtils.cp('~/.ssh/config_fanout', '~/.ssh/config')
FileUtils.cp('/home/ubuntu/.ssh/config_fanout', '/home/ubuntu/.ssh/config')

SSHKit::Backend::Netssh.configure {|ssh| ssh.ssh_options = {paranoid: false}}
SSHKit::Coordinator.new(frontend_servers_to_restart).each(in: :sequence, wait: delay_per_group, limit: group_size) do
Expand Down

0 comments on commit a5d2d4b

Please sign in to comment.