set permissions to 1000 at build

This commit is contained in:
2023-05-27 21:58:31 +00:00
parent 90910f9fdf
commit 877e98eff7
2 changed files with 5 additions and 4 deletions

View File

@ -38,16 +38,16 @@ else
exit 1
fi
echo "Checking permissions in /config and /app (this can take some time)."
echo "Checking permissions in /config and /app."
if [ ! "$(stat -c %u /app)" -eq "${PUID}" ] || [ ! "$(stat -c %g /app)" -eq "${PGID}" ]
then
echo "Fixing permissions for /app."
echo "Fixing permissions for /app (this can take some time)."
chown -R cronicle:cronicle /app
fi
if [ ! "$(stat -c %u /config)" -eq "${PUID}" ] || [ ! "$(stat -c %g /config)" -eq "${PGID}" ]
then
echo "Fixing permissions for /config."
echo "Fixing permissions for /config (this can take some time)."
chown -R cronicle:cronicle /config
fi