Compare commits
No commits in common. "82411f00f443bc265606198d291d848ac23a262f" and "9ec95657b78de7191059d66933b15cada3aae577" have entirely different histories.
82411f00f4
...
9ec95657b7
@ -22,10 +22,8 @@ reconcileDockerOwnership()
|
|||||||
local mode="${1:-$CFG_DOCKER_INSTALL_TYPE}"
|
local mode="${1:-$CFG_DOCKER_INSTALL_TYPE}"
|
||||||
[[ -d "$docker_dir" ]] || return 0
|
[[ -d "$docker_dir" ]] || return 0
|
||||||
|
|
||||||
# The control plane is owned by the MANAGER user in BOTH modes. root:root was
|
local owner="root"
|
||||||
# never the intended model — it only ever showed up as an artifact of
|
[[ "$mode" == "rootless" ]] && owner="$sudo_user_name"
|
||||||
# un-de-sudo'd commands (sudo creating files as root instead of libreportal).
|
|
||||||
local owner="$sudo_user_name"
|
|
||||||
|
|
||||||
# Swap ONLY the owner on our own control-plane files; never reset mode bits
|
# 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
|
# (so nothing that validates its permissions gets surprised). The only two
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user