Skip to content

Instantly share code, notes, and snippets.

@seabbs
Last active August 17, 2020 19:38
Show Gist options
  • Save seabbs/5108f9fcb418fa872e699c4d83ed848a to your computer and use it in GitHub Desktop.
Save seabbs/5108f9fcb418fa872e699c4d83ed848a to your computer and use it in GitHub Desktop.
Update Rt estimates on a remote server over SSH. Run with: sudo bash update-rt-estimates.sh server-public-ip
#!/bin/bash
# Get rid of the older update script
rm update-via-ssh.sh
# Get the new update script
curl --fail https://raw.githubusercontent.com/epiforecasts/covid-rt-estimates/master/bin/update-via-ssh.sh > update-via-ssh.sh
# Run the update script
bash update-via-ssh.sh ~/.ssh/id_rsa azureuser@$1 github-username-here github-pat-here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment