Crontab in the repository

Issue #34 new
Alexey Eschenko repo owner created an issue

Crontab in the repository

Comments (2)

  1. Alexey Eschenko reporter
    # Think about flock
    echo '' > /tmp/crontab
    for PROJ_DIR in /var/www/*; do CRONTAB=$PROJ_DIR/current/app/crontab && if [ -f $CRONTAB ] ; then cat $PROJ_DIR/current/app/crontab >> /tmp/crontab ; fi ; done
    crontab /tmp/crontab
    rm -f /tmp/crontab
    
  2. Log in to comment