优化entrypoint.sh脚本

This commit is contained in:
david
2020-12-22 01:14:40 +08:00
parent 1ff415ea91
commit 801d7b016f
4 changed files with 4 additions and 3 deletions

View File

@ -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