mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-23 14:30:46 +02:00
fuse integration: strip a trailing slash off MOUNT_POINT in require-mounted
The mount-table grep fallback on hosts without mountpoint(8) would not match a slash-suffixed entry.
This commit is contained in:
1 parent
b377e2cdc9
commit
6d62bf517d
1 file changed
+3
-2
@@ -230,8 +230,9 @@ endif
|
||||
# mkdir -p would happily point them at a plain local directory and report a
|
||||
# pass the mount never earned.
|
||||
require-mounted:
|
||||
@if ! mountpoint -q "$(MOUNT_POINT)" 2>/dev/null && ! mount | grep -qF " $(MOUNT_POINT) "; then \
|
||||
echo "$(RED)❌ $(MOUNT_POINT) is not a mounted filesystem - refusing to run against the local disk$(RESET)"; \
|
||||
@mnt="$(MOUNT_POINT)"; mnt="$${mnt%/}"; \
|
||||
if ! mountpoint -q "$$mnt" 2>/dev/null && ! mount | grep -qF " $$mnt "; then \
|
||||
echo "$(RED)❌ $$mnt is not a mounted filesystem - refusing to run against the local disk$(RESET)"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user