drupal/drupal-cron.sh

Fri, 21 Sep 2012 22:45:41 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 21 Sep 2012 22:45:41 +0200
changeset 704
0a3af3462343
permissions
-rw-r--r--

Avoid root permissions generally and allow for single daemon execution.

     1 #!/bin/sh
     2 ##
     3 ##  drupal-cron.sh -- Drupal Cron Job
     4 ##
     6 server=`grep '^Listen' @l_prefix@/etc/drupal/drupal-apache.conf | head -1 | awk '{ print $2; }'`
     7 @l_prefix@/lib/openpkg/curl --silent --compressed http://$server/cron.php || true

mercurial