We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f1a07e commit 8dca01aCopy full SHA for 8dca01a
not-supported/plexmediaserver.sh
@@ -71,6 +71,10 @@ DIRECTORIES=$(find /mnt/ -mindepth 1 -maxdepth 2 -type d | grep -v "/mnt/ncdata"
71
mapfile -t DIRECTORIES <<< "$DIRECTORIES"
72
for directory in "${DIRECTORIES[@]}"
73
do
74
+ # Open directory to make sure that it is accessible
75
+ ls "$directory" &>/dev/null
76
+
77
+ # Continue with the logic
78
if mountpoint -q "$directory" && [ "$(stat -c '%a' "$directory")" = "770" ]
79
then
80
if [ "$(stat -c '%U' "$directory")" = "www-data" ] && [ "$(stat -c '%G' "$directory")" = "www-data" ]
0 commit comments