updating check against root as emphemeral instead of /var/vcap/data
@@ -67,11 +67,11 @@ fi
<% end %>
DATADIR_DEVICE=$(stat -c "%d" "${datadir}")
-EPHEMERAL_DEVICE=$(stat -c "%d" "/var/vcap/data/")
+EPHEMERAL_DEVICE=$(stat -c "%d" "/")
if [[ "$DATADIR_DEVICE" == "$EPHEMERAL_DEVICE" ]]
then
echo "###################################################################################################################################" >> "${LOG_FILE}"
- echo "!!! Data directory (${datadir}) is on the same filesystem as /var/vcap/data. Have you attached persistent disk? !!!" >> "${LOG_FILE}"
+ echo "!!! Data directory (${datadir}) is on the same filesystem as /. Have you attached persistent disk? !!!" >> "${LOG_FILE}"
echo "####################################################################################################################################" >> "${LOG_FILE}"
exit 1
fi
