manned/util/cron.sh
2025-10-23 08:35:31 +02:00

21 lines
419 B
Bash
Executable file

#!/bin/sh
PSQL="psql -U manned -Awtq"
./alpine.sh current
./arch.sh current
./debian.sh current
./centos.sh current
./fedora.sh current
./ubuntu.sh current
echo "============ Updating SQL indices"
$PSQL -f update_indices.sql
echo "============ Updating HTML cache"
test -f .config && source ./.config
./cache-html.pl --batch=5 --delay=0.5 --maxbatches=1000
echo "============ Updating database dumps"
./export.sh