Merge pull request #6178 from nextcloud/enh/noid/test-file

nextcloud-entrypoint: output error message if touch failed
This commit is contained in:
Simon L. 2025-03-20 12:41:04 +01:00 committed by GitHub
commit 2cc4c6813f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ while ! nc -z "$REDIS_HOST" "6379"; do
done done
# Check permissions in ncdata # Check permissions in ncdata
touch "$NEXTCLOUD_DATA_DIR/this-is-a-test-file" &>/dev/null touch "$NEXTCLOUD_DATA_DIR/this-is-a-test-file"
if ! [ -f "$NEXTCLOUD_DATA_DIR/this-is-a-test-file" ]; then if ! [ -f "$NEXTCLOUD_DATA_DIR/this-is-a-test-file" ]; then
echo "The www-data user doesn't seem to have access rights in the datadir. echo "The www-data user doesn't seem to have access rights in the datadir.
Most likely are the files located on a drive that does not follow linux permissions. Most likely are the files located on a drive that does not follow linux permissions.