fix(install): run chown in subshell to avoid ERR trap

This commit is contained in:
CanbiZ (MickLesk)
2026-01-28 14:42:10 +01:00
parent 0ace1009ad
commit 032dfacce2

View File

@@ -83,7 +83,7 @@ setting_up_container() {
# Fix Debian 13 LXC template bug where / is owned by nobody # Fix Debian 13 LXC template bug where / is owned by nobody
# Only attempt in privileged containers (unprivileged cannot chown /) # Only attempt in privileged containers (unprivileged cannot chown /)
if [[ "$(stat -c '%U' /)" != "root" ]]; then if [[ "$(stat -c '%U' /)" != "root" ]]; then
chown root:root / 2>/dev/null || true (chown root:root / 2>/dev/null) || true
fi fi
for ((i = RETRY_NUM; i > 0; i--)); do for ((i = RETRY_NUM; i > 0; i--)); do