# 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
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