mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-03 20:03:25 +01:00
fix(install): run chown in subshell to avoid ERR trap
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user