fix(docker): repair helper resource permissions (#6177)

This commit is contained in:
qqcomeup
2026-07-23 22:19:41 +00:00
committed by GitHub
parent 14fed2d70b
commit 059a50f7f8
2 changed files with 27 additions and 0 deletions

View File

@@ -409,6 +409,14 @@ function chown_plugin_runtime_path() {
chown -h moviepilot:moviepilot "${plugin_path}"
}
function correct_helper_resource_permissions() {
local helper_dir="${IMAGE_HELPER_DIR:-/app/app/helper}"
[ -e "${helper_dir}" ] || return 0
INFO "→ 正在修复资源包目录权限:${helper_dir}"
chown -R moviepilot:moviepilot "${helper_dir}"
}
function correct_file_permissions() {
local chown_start
local chown_end
@@ -416,6 +424,7 @@ function correct_file_permissions() {
INFO "→ 正在校正文件权限..."
force_chown_image_paths_if_requested /app /public
correct_helper_resource_permissions
chown_plugin_runtime_path /app/app/plugins
correct_home_permissions
chown -R moviepilot:moviepilot \