Skip to content

Commit

Permalink
revert cron env load to test
Browse files Browse the repository at this point in the history
  • Loading branch information
fillup committed Nov 27, 2017
1 parent 69683c0 commit 22a94eb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion application/run-cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ chown -R www-data:www-data \
runny /data/yii migrate --interactive=0

# Dump env to a file
env >> /etc/environment
touch /etc/cron.d/email
env | while read line ; do
echo "$line" >> /etc/cron.d/email
done

# Add env vars to idp-cron to make available to scripts
cat /etc/cron.d/email-cron >> /etc/cron.d/email

# Remove original cron file without env vars
rm -f /etc/cron.d/email-cron

# Start cron daemon
cron -f

0 comments on commit 22a94eb

Please sign in to comment.