Skip to content

Commit

Permalink
fix: emby version file copy failed
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Nov 16, 2024
1 parent 4304595 commit 3063758
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3063758

Please sign in to comment.