mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
8 lines
479 B
Plaintext
8 lines
479 B
Plaintext
# XAMXAM — orphaned draft cleanup cron job
|
|
# Installed to /etc/cron.d/xamxam-cleanup (system cron format: minute hour dom month dow user command)
|
|
#
|
|
# Deletes draft theses older than 24h that have no attached files.
|
|
# Runs every 4 hours — drafts only become eligible after 24h, so this is ample.
|
|
# The script is a dry-run unless --no-dry-run is passed.
|
|
0 */4 * * * www-data php /var/www/xamxam/scripts/cleanup-drafts.php --no-dry-run >> /var/log/xamxam-cleanup.log 2>&1
|