fix permissions check when file has space in the name

This commit is contained in:
florian 2022-06-26 11:58:45 +02:00
parent 2b43a9cbf5
commit 0f2388b1f2
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ for folder in "${rx_folders[@]}" ; do
fi
done
# Check permissions on files
IFS="\n"
for file in $(find /data -type f) ; do
if [ ! -r "${file}" ] ; then
log "$1" "❌" "Wrong permissions on ${file} (at least R needed for user nginx with uid 101 and gid 101)"