Skip to content

Commit

Permalink
Fixed cron services
Browse files Browse the repository at this point in the history
  • Loading branch information
echo511 committed Sep 25, 2016
1 parent af45c7c commit 508a356
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ if [ "$1" = 'start' ]; then

# cron shell
chmod +x /usr/share/nginx/html/server/php/shell/*.sh
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/indexing_to_elasticsearch.sh' > /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/instant_email_notification.sh' > /var/spool/cron/root
echo '0 * * * * php /usr/share/nginx/htmlserver/php/shell/periodic_email_notification.sh' > /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/webhook.sh' > /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/card_due_notification.sh' > /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/imap.sh' > /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/indexing_to_elasticsearch.sh' >> /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/instant_email_notification.sh' >> /var/spool/cron/root
echo '0 * * * * php /usr/share/nginx/htmlserver/php/shell/periodic_email_notification.sh' >> /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/webhook.sh' >> /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/card_due_notification.sh' >> /var/spool/cron/root
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/shell/imap.sh' >> /var/spool/cron/root

# media
cp -R /tmp/media /usr/share/nginx/html/
chmod -R go+w /usr/share/nginx/html/media
Expand Down

0 comments on commit 508a356

Please sign in to comment.