Merge claude/1

This commit is contained in:
librelad 2026-05-24 02:23:00 +01:00
commit 016f11882e

View File

@ -35,9 +35,13 @@ reconcileDockerOwnership()
local logdir="${logs_dir:-$ddir/logs/}"
local scrdir="${script_dir:-$ddir/install}"
local dbpath="$ddir/${db_file:-database.db}"
local appusr="${docker_install_user:-${CFG_DOCKER_INSTALL_USER:-}}"
[[ -z "$appusr" ]] && appusr=$(grep -h '^CFG_DOCKER_INSTALL_USER=' "$cfgdir/general/general_docker_install" 2>/dev/null | head -1 | cut -d= -f2 | awk '{print $1}')
appusr="${appusr:-dockerinstall}"
# Read the rootless docker install user AUTHORITATIVELY from config — NOT the
# lowercase $docker_install_user global, which check_install_type.sh sets to
# the MANAGER user in rooted mode, so during a rooted->rootless switch it's
# stale (=manager) and would mis-own the WebUI dir.
local appusr
appusr=$(grep -h '^CFG_DOCKER_INSTALL_USER=' "$cfgdir/general/general_docker_install" 2>/dev/null | head -1 | cut -d= -f2 | awk '{print $1}')
appusr="${appusr:-${CFG_DOCKER_INSTALL_USER:-dockerinstall}}"
[[ -d "$ddir" ]] || return 0