use the FQDN for PLC_WWW_HOST rather than localhost to get cron.php
[myplc.git] / plc.d / crond
index 024615c..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
 
@@ -55,7 +55,7 @@ EOF
        fi
 
        if [ "$PLC_DB_ENABLED" = "1" ] ; then
-           echo "5 5 * * * root vacuumdb -U postgres --all --analyze --quiet" >>/etc/cron.d/plc.cron
+           echo "5 5 * * * root vacuumdb -U postgres --all --analyze --quiet --full" >>/etc/cron.d/plc.cron
            vacuumdb -U postgres --all --analyze --quiet
            check
        fi