From b345d8d87af89e90a7d6694545949d78a8f54f86 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Sun, 21 Jun 2009 03:54:19 +0000 Subject: [PATCH] use the FQDN for PLC_WWW_HOST rather than localhost to get cron.php --- plc.d/crond | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plc.d/crond b/plc.d/crond index c4275c8..67a745e 100755 --- a/plc.d/crond +++ b/plc.d/crond @@ -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 -- 2.43.0