fix: Inherit owner from parent folder (#1092)

This commit is contained in:
Kroese
2025-10-22 02:38:57 +02:00
committed by GitHub
parent b7f5214a7b
commit a0328e1e9c
5 changed files with 95 additions and 23 deletions

View File

@@ -78,8 +78,7 @@ fi
# Check folder
if [[ "${COMMIT:-}" == [Yy1]* ]]; then
STORAGE="/local"
if [[ "${STORAGE,,}" != "/storage" ]]; then
mkdir -p "$STORAGE"
fi
@@ -88,7 +87,9 @@ if [ ! -d "$STORAGE" ]; then
fi
if [ ! -w "$STORAGE" ]; then
error "Storage folder ($STORAGE) is not writeable!" && exit 13
msg="Storage folder ($STORAGE) is not writeable!"
msg+=" If SELinux is active, you need to add the \":Z\" flag to the bind mount."
error "$msg" && exit 13
fi
# Check filesystem