mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 13:20:40 +00:00
fix(install): ignore chown error in unprivileged containers
This commit is contained in:
+2
-1
@@ -81,8 +81,9 @@ setting_up_container() {
|
|||||||
msg_info "Setting up Container OS"
|
msg_info "Setting up Container OS"
|
||||||
|
|
||||||
# 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 /)
|
||||||
if [[ "$(stat -c '%U' /)" != "root" ]]; then
|
if [[ "$(stat -c '%U' /)" != "root" ]]; then
|
||||||
chown root:root /
|
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