tunasync-scripts/retired/packagist.sh
Harry Chen 0707089bdb Retire packagist scripts
Signed-off-by: Harry Chen <i@harrychen.xyz>
2023-12-03 11:40:18 +08:00

9 lines
195 B
Bash
Executable File

#!/bin/bash
set -e
php /usr/local/composer-mirror/bin/console app:crawler
# 6553/32768
if [[ $RANDOM -le 6553 ]]; then
php /usr/local/composer-mirror/bin/console app:clear --expired=json
fi