From 30637585b939c509d19ff22e79d81f6782c1dd3e Mon Sep 17 00:00:00 2001 From: DDSRem <73049927+DDSRem@users.noreply.github.com> Date: Sat, 16 Nov 2024 11:18:02 +0800 Subject: [PATCH] fix: emby version file copy failed --- all_in_one.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/all_in_one.sh b/all_in_one.sh index d3f348b0b5..3eec639995 100644 --- a/all_in_one.sh +++ b/all_in_one.sh @@ -2000,7 +2000,10 @@ function download_unzip_xiaoya_emby_new_config() { if [ -f "${MEDIA_DIR}/EmbyServer.deps.json" ]; then rm -f "${MEDIA_DIR}/EmbyServer.deps.json" fi - docker run --rm --entrypoint cp -v "${MEDIA_DIR}:/data" "${emby_image_name}" /system/EmbyServer.deps.json /data + CURRENT_ULIMIT=$(ulimit -n) + ulimit -n 65535 + docker run --rm --ulimit nofile=65535:65535 --entrypoint cp -v "${MEDIA_DIR}:/data" "${emby_image_name}" /system/EmbyServer.deps.json /data + ulimit -n "${CURRENT_ULIMIT}" if [ ! -f "${MEDIA_DIR}/EmbyServer.deps.json" ]; then ERROR "Emby 版本数据文件复制失败!" exit 1