Update extra/entrypoint.sh

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

View file

@ -9,6 +9,7 @@ files_ownership () {
if [ $(stat -c%u /app/data) != $(id -u) ]; then
echo "File ownership incorrect, attempting to fix."
chown -hRc "$(id -u)":"$(id -g)" /app/data || echo "ERROR: Failed to set file ownership. Please run 'sudo chown -R $(id -u):$(id -g) /path/to/container/volume' to resolve."; exit 1
echo "File ownership fix succesful! Continuing."
fi
# Checks for R/W permissions