Skip to content

Commit 494a521

Browse files
committed
check for tmp dir
1 parent c30b464 commit 494a521

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/ghe-host-check

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ NON_WRITABLE=""
119119
# ensure all nodes are writable
120120
if "$CLUSTER"; then
121121
if [ -z "$FILE_TO_TEST" ]; then
122-
FILE_TO_TEST="/data/user/tmp/test-ro-file.txt"
122+
if [ -d "/data/user/tmp" ]; then
123+
FILE_TO_TEST="/data/user/tmp/test-ro-file.txt"
124+
else
125+
FILE_TO_TEST="/tmp/test-ro-file.txt"
126+
fi
123127
fi
124128

125129
# Iterate through each node in the cluster

0 commit comments

Comments
 (0)