Compare commits

..

No commits in common. "016f11882e4ce093cf92fc7e13fa144657a58125" and "ad902c6478cbbd97b23b0b0c4c9408742f53df07" have entirely different histories.

View File

@ -35,13 +35,9 @@ reconcileDockerOwnership()
local logdir="${logs_dir:-$ddir/logs/}"
local scrdir="${script_dir:-$ddir/install}"
local dbpath="$ddir/${db_file:-database.db}"
# 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}}"
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}"
[[ -d "$ddir" ]] || return 0