mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-18 16:03:42 +08:00
fix: Inherit owner from parent folder (#1092)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user