Skip to content

Commit

Permalink
fix: 🐛 修复脚本bug
Browse files Browse the repository at this point in the history
  • Loading branch information
monlor committed May 29, 2024
1 parent e80333b commit 831634e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ docker compose up -d

## 配置示例

1. [只部署小雅alist](/docker-compose-alist.yml)
2. [部署小雅alist+emby](/docker-compose-emby.yml)
2. [部署小雅alist+jellyfin](/docker-compose-jellyfin.yml)
* [只部署小雅alist](/docker-compose-alist.yml)
* [部署小雅alist+emby](/docker-compose-emby.yml)
* [部署小雅alist+jellyfin](/docker-compose-jellyfin.yml)

## 参考

https://hub.docker.com/r/amilys/embyserver

https://github.com/DDS-Derek/xiaoya-alist/blob/master/all_in_one.sh
6 changes: 6 additions & 0 deletions alist/clear.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/bin/bash

set -e

DATA_DIR=/data

myecho() {
echo "$*"
}

retry_command() {
# 重试次数和最大重试次数
retries=0
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-emby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
- meta:/media/temp
depends_on:
- alist
restart: no
restart: unless-stopped
networks:
- default
emby:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-jellyfin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
- meta:/media/temp
depends_on:
- alist
restart: no
restart: unless-stopped
networks:
- default
jellyfin:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
- meta:/media/temp
depends_on:
- alist
restart: no
restart: unless-stopped
networks:
- default
emby:
Expand Down
3 changes: 3 additions & 0 deletions glue/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ while ! curl -s -f -m 1 "${ALIST_ADDR:=http://alist:80}" > /dev/null; do
sleep 2
done

echo "alist启动完成,可能需要一段时间加载数据,等待5分钟后开始下载元数据..."
sleep 300

MEDIA_DIR="/media"

if [ ! -d "${MEDIA_DIR}/temp" ]; then
Expand Down

0 comments on commit 831634e

Please sign in to comment.