Merge claude/1

This commit is contained in:
librelad 2026-05-24 01:28:56 +01:00
commit 9ec95657b7

View File

@ -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)"
}