Skip to content

Commit

Permalink
sets datetime of server (#8395)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Owocki <[email protected]>
  • Loading branch information
owocki and Kevin Owocki authored Feb 16, 2021
1 parent 615b0f3 commit 6352e2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/deploy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ fi
cd ~/gitcoin/coin || echo "Cannot find coin directory!"
bash scripts/run_management_command.bash ping_google https://gitcoin.co/sitemap.xml

# set datetime of the server to prevent
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

if [ "$ENV" = "prod" ] && [ "$JOBS_NODE" ]; then
# Handle sentry deployment
echo "- publishing deployment information to Sentry"
Expand Down

0 comments on commit 6352e2b

Please sign in to comment.