Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Feb 19, 2024
1 parent 30a5d89 commit 82712cd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cron/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM alpine:3.19

ENV TZ=Asia/Shanghai

RUN set -ex && \
apk add --no-cache \
jq \
bash \
curl \
docker \
s6-overlay \
tzdata \
sqlite && \
rm -rf \
/var/cache/apk/* \
Expand Down
13 changes: 13 additions & 0 deletions cron/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
```shell
docker run -d \
--name=xiaoya-cron \
-e TZ=Asia/Shanghai \
-e EMBY= \
-e RESILIO= \
-e CRON= \
-v "${RESILIO_DIR}:/config" \
-v "${MEDIA_DIR}:/media" \
-v "${XIAOYA_DIR}:/etc/xiaoya" \
--restart=always \
ddsderek/xiaoya-cron:latest
```
4 changes: 2 additions & 2 deletions cron/rootfs/etc/s6-overlay/s6-rc.d/init-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ cd /app || exit

crontab -r

echo "${CRON} bash /app/sync_emby_config.sh ${EMBY_NAME} ${RESILIO_NAME} >> /config/cron.log 2>&1" > /app/cronjob.list
echo "bash /app/sync_emby_config.sh ${EMBY_NAME} ${RESILIO_NAME}" > /app/command.sh
echo "${CRON} bash /app/sync_emby_config.sh ${EMBY} ${RESILIO} >> /config/cron.log 2>&1" > /app/cronjob.list
echo "bash /app/sync_emby_config.sh ${EMBY} ${RESILIO}" > /app/command.sh

if crontab /app/cronjob.list; then
echo "定时任务添加成功"
Expand Down

0 comments on commit 82712cd

Please sign in to comment.