From ab82213006283579f8215f0cd7c07faabc3048b4 Mon Sep 17 00:00:00 2001 From: Roland Date: Sat, 16 Mar 2024 19:57:13 -0600 Subject: [PATCH] Checking if media directory is a mounted drive in help script. --- help.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/help.sh b/help.sh index 5c29abc2..ddfe2b90 100755 --- a/help.sh +++ b/help.sh @@ -233,6 +233,11 @@ if [ -d "${MEDIA_DIRECTORY}" ] && [ -d ${MEDIA_DIRECTORY}/config ]; then echo "FAILED: Cannot modify media directory" fi fi +if grep -qs "${MEDIA_DIRECTORY}" /proc/mounts >/dev/null 2>&1 ; then + echo "OK: Media directory is a mounted drive" +else + echo "FAILED: Media directory is not a mounted drive. (This is fine if you don't have an external drive.)" +fi if curl -s http://0.0.0.0/media/ | grep "Index of" >/dev/null; then echo "OK: Media directory files are served by nginx"