Skip to content

Commit

Permalink
Explicitly set env variable for cron subshell
Browse files Browse the repository at this point in the history
  • Loading branch information
mwunsch committed Jul 27, 2016
1 parent a6fb1bc commit 87c5b32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions formation.json
Expand Up @@ -64,18 +64,17 @@
"nohup sudo -i -u ubuntu jackd -R -d dummy -r 44100 -P 0>&- &>/dev/null &",
"crontab -u ubuntu - <<EOF",
{"Fn::Join": ["=",["FORECAST_API_KEY", {"Ref": "ForecastApiKey"}]]},
"TZ=America/New_York",
{"Fn::Join": [" ", [
"0 13 * * *",
"[ $(date +\\%z) = '-0400' ] &&",
"[ $(TZ='America/New_York' date +\\%z) = '-0400' ] &&",
"cd /srv/sonic_sketches &&",
"/usr/local/bin/lein trampoline run",
{"Ref": "ObjectStorage"},
">/dev/null 2>&1"
]]},
{"Fn::Join": [" ", [
"0 14 * * *",
"[ $(date +\\%z) = '-0500' ] &&",
"[ $(TZ='America/New_York' date +\\%z) = '-0500' ] &&",
"cd /srv/sonic_sketches &&",
"/usr/local/bin/lein trampoline run",
{"Ref": "ObjectStorage"},
Expand Down

0 comments on commit 87c5b32

Please sign in to comment.