|
@@ -17,7 +17,7 @@ if [ "$1" = 'sentry' ]; then
|
|
|
if [ "$(id -u)" = '0' ]; then
|
|
|
mkdir -p /data/files
|
|
|
sentry_uid=$(id -u sentry)
|
|
|
- if [ "$(stat -c %u /data)" != "$sentry_uid" || "$(stat -c %u /data/files)" != "$sentry_uid" ]; then
|
|
|
+ if [ "$(stat -c %u /data)" != "$sentry_uid" ] || [ "$(stat -c %u /data/files)" != "$sentry_uid" ]; then
|
|
|
find /data ! -user sentry -exec chown sentry {} \;
|
|
|
fi
|
|
|
set -- gosu sentry "$@"
|