mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Checking if media directory is a mounted drive in help script.
This commit is contained in:
parent
56d430df22
commit
ab82213006
1 changed files with 5 additions and 0 deletions
5
help.sh
5
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue