Compare commits

..

No commits in common. "96300d5f6bc711f883d95da3bb33370472ce757b" and "b2d57b27742158c0911e4bd487a449cdd3832595" have entirely different histories.

View File

@ -25,8 +25,7 @@ reconcileDockerOwnership()
# The control plane is owned by the MANAGER user in BOTH modes. root:root was
# never the intended model — it only ever showed up as an artifact of
# un-de-sudo'd commands (sudo creating files as root instead of libreportal).
local owner="${sudo_user_name:-libreportal}"
local appusr="${docker_install_user:-$CFG_DOCKER_INSTALL_USER}"
local owner="$sudo_user_name"
# Swap ONLY the owner on our own control-plane files; never reset mode bits
# (so nothing that validates its permissions gets surprised). The only two
@ -53,7 +52,7 @@ reconcileDockerOwnership()
local webui_dir="${containers_dir}libreportal"
if [[ -d "$webui_dir" ]]; then
local app_owner="$owner"
[[ "$mode" == "rootless" ]] && app_owner="$appusr"
[[ "$mode" == "rootless" ]] && app_owner="$docker_install_user"
runSystem chown -R "$app_owner:$app_owner" "$webui_dir"
fi