File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5050
5151# Checking if the cron is already set up
5252# Cron job written according http://www.drush.org/en/master/cron/
53- CRON_JOB=" root /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 /usr/local/bin/drush --root=/var/www cron"
54- CHECK=$( cat /etc/crontab | grep -o " $CRON_JOB " )
53+ CRON_JOB=" www-data /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 /usr/local/bin/drush --root=/var/www cron"
54+ CHECK=$( cat $ENV_CRON | grep -o " $CRON_JOB " )
5555
5656if [[ -z $CHECK ]]; then
57- echo " $CRON_SCHEDULE $CRON_JOB " >> /etc/cron.d/drupal
58- echo " $( date " +%Y-%m-%d %H:%M:%S" ) CRON_JOB set in /etc/crontab " >> /var/log/supervisor/cron.log
57+ echo " $CRON_SCHEDULE $CRON_JOB " >> $ENV_CRON
58+ echo " $( date " +%Y-%m-%d %H:%M:%S" ) CRON_JOB set in $ENV_CRON " >> /var/log/supervisor/cron.log
5959else
6060 echo " $( date " +%Y-%m-%d %H:%M:%S" ) CRON_JOB already created, doing nothing..." >> /var/log/supervisor/cron.log
6161fi
You can’t perform that action at this time.
0 commit comments