mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-11 12:59:17 +03:00
fix hoogle cron escaping (#1902)
This commit is contained in:
parent
6cd3f93d2e
commit
18aee24e0f
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user