flexisip-account-manager/cron/flexiapi.redhat
Timothée Jaussoin 056dc8d159 Fix FLEXIAPI-406 Add an artisan console script to clear statistics after n days
Add it in the daily crons, with 30 days delay
2025-11-18 15:49:19 +01:00

9 lines
No EOL
347 B
Bash

#!/bin/sh
cd /opt/belledonne-communications/share/flexisip-account-manager/flexiapi/
php artisan digest:clear-nonces 60
php artisan accounts:clear-api-keys 60
php artisan accounts:clear-accounts-tombstones 7 --apply
php artisan accounts:clear-unconfirmed 30 --apply
php artisan spaces:expiration-emails
php artisan app:clear-statistics 30 --apply