use the FQDN for PLC_WWW_HOST rather than localhost to get cron.php 4.2 4.2
authorMarc Fiuczynski <mef@cs.princeton.edu>
Sun, 21 Jun 2009 03:54:19 +0000 (03:54 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Sun, 21 Jun 2009 03:54:19 +0000 (03:54 +0000)
plc.d/crond

index c4275c8..67a745e 100755 (executable)
@@ -43,8 +43,8 @@ EOF
         # Run all jobs once at startup
 
        if [ "$PLC_WWW_ENABLED" = "1" ] ; then
-           echo "00 * * * * wget -O - -q http://localhost/cron.php" >>/etc/cron.d/plc.cron
-           wget -O - -q http://localhost/cron.php
+           echo "00 * * * * wget -O - -q http://${PLC_WWW_HOST}/cron.php" >>/etc/cron.d/plc.cron
+           wget -O - -q http://${PLC_WWW_HOST}/cron.php
            check
        fi