Last active
September 10, 2020 09:23
-
-
Save seabbs/e4fea75701cb30b02f253de4759397f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
cd /home/azureuser/ | |
git clone git@github.com:epiforecasts/covid-rt-estimates.git | |
cd covid-rt-estimates | |
sudo bash bin/update-docker.sh "build" | |
sudo bash bin/update-via-docker.sh | |
FILE=last-update/update-complete | |
while [ ! -f "$FILE" ]; do | |
echo "$FILE does not exist so keep waiting." | |
sleep 60 | |
done | |
echo "$FILE exists so updating GitHub and removing local estimates" | |
git add --all | |
git commit -m "update estimates" | |
git push | |
rm -r -f covid-rt-estimates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add following to
crontab
usingcrontab -e
to update every day at 7pm: