mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-07-08 08:31:53 +00:00
优化docker
This commit is contained in:
7
docker/entrypoint.sh
Normal file
7
docker/entrypoint.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
DEFAULT_CRON="9 */6 * * *"
|
||||
cron=${cron:-$DEFAULT_CRON}
|
||||
set -e
|
||||
echo "$cron /usr/bin/php /IYUU/iyuu.php" | crontab -
|
||||
/usr/bin/php /IYUU/iyuu.php
|
||||
/usr/sbin/crond -f
|
Reference in New Issue
Block a user