Update extra/entrypoint.sh

Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
Sem 2022-04-02 21:39:48 +02:00 committed by GitHub
parent 936b73dfa2
commit c8b4887f6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ files_ownership () {
echo "File permissions incorrect. Attempting to fix."
find /app/data -type f -exec chmod 640 {} \;
#Re-run the check
# Re-run the check
if [ $(stat -c%a /app/data/* | head -n 1) != 640 ]; then
echo "ERROR: Failed to set file permissions. Please run 'sudo find /path/to/container/volume -type f chmod 640 {} \;' to resolve."
exit 1