mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-07-08 08:31:53 +00:00
优化entrypoint.sh脚本
This commit is contained in:
@ -3,5 +3,6 @@ DEFAULT_CRON="9 */6 * * *"
|
||||
cron=${cron:-$DEFAULT_CRON}
|
||||
set -e
|
||||
echo "$cron /usr/bin/php /IYUU/iyuu.php" | crontab -
|
||||
cd /IYUU && git fetch --all && git reset --hard origin/master
|
||||
/usr/bin/php /IYUU/iyuu.php
|
||||
/usr/sbin/crond -f
|
||||
|
Reference in New Issue
Block a user