Merge claude/1
This commit is contained in:
commit
9ec95657b7
@ -41,6 +41,18 @@ reconcileDockerOwnership()
|
||||
done
|
||||
[[ -f "$docker_dir/$db_file" ]] && runSystem chmod o+r "$docker_dir/$db_file"
|
||||
|
||||
# LibrePortal's OWN WebUI container dir is regenerable and runs as 0:0
|
||||
# (root-in-container -> root rooted / install user rootless). Flip it to the
|
||||
# mode's container owner so the WebUI survives a switch; it's safe to recurse
|
||||
# because it's all one UID (no per-app uid to clobber). Third-party app data
|
||||
# elsewhere under containers/ is still left untouched.
|
||||
local webui_dir="${containers_dir}libreportal"
|
||||
if [[ -d "$webui_dir" ]]; then
|
||||
local app_owner="root"
|
||||
[[ "$mode" == "rootless" ]] && app_owner="$docker_install_user"
|
||||
runSystem chown -R "$app_owner:$app_owner" "$webui_dir"
|
||||
fi
|
||||
|
||||
isSuccessful "Reconciled LibrePortal control-plane ownership for $mode ($owner)"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user