Skip to content

Commit

Permalink
fix hoogle cron escaping (digital-asset#1902)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyverhaegen-da authored and mergify[bot] committed Jun 26, 2019
1 parent 6cd3f93 commit 18aee24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infra/hoogle_server.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ cat > /home/hoogle/refresh-db.sh <<CRON
#!/usr/bin/env bash
set -euxo pipefail
log() {
echo "[$(date -Is)] $1" >> /home/hoogle/cron_log.txt
echo "[\$(date -Is)] \$1" >> /home/hoogle/cron_log.txt
}
log "Checking for new DAML version..."
cd /home/hoogle/hoogle
Expand All @@ -109,6 +109,7 @@ else
fi
log "Done."
CRON
chmod +x /home/hoogle/refresh-db.sh
chown hoogle:hoogle /home/hoogle/refresh-db.sh
echo "*/5 * * * * /home/hoogle/refresh-db.sh" | crontab -u hoogle -
STARTUP
Expand Down

0 comments on commit 18aee24

Please sign in to comment.