mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-15 17:06:48 +02:00
Update extra/entrypoint.sh
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
3ef783eca1
commit
87f2860caf
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue