X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fcrond;h=67a745e71b04549d8e2904dd270d0a1870300316;hb=refs%2Fheads%2F4.2;hp=c4275c89adaf86b38298b6e0b1fafccc8d8c794a;hpb=576b977095fda409d2264e6a31183ad3256ba9e0;p=myplc.git 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