add packagist.sh

This commit is contained in:
root 2020-02-24 11:12:29 +08:00
parent e68497c599
commit 8f1b133c2c

8
packagist.sh Executable file
View File

@ -0,0 +1,8 @@
#!/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