mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-16 17:36:47 +02:00
Update extra/entrypoint.sh
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
936b73dfa2
commit
c8b4887f6e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ files_ownership () {
|
||||||
echo "File permissions incorrect. Attempting to fix."
|
echo "File permissions incorrect. Attempting to fix."
|
||||||
find /app/data -type f -exec chmod 640 {} \;
|
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
|
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."
|
echo "ERROR: Failed to set file permissions. Please run 'sudo find /path/to/container/volume -type f chmod 640 {} \;' to resolve."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue