2
0

fix(data-migration): Make sure to chown the /data folder on sentry (#336)

Fixes #334.
This commit is contained in:
Burak Yigit Kaya
2020-01-13 22:25:27 +03:00
committed by GitHub
parent a655b4799c
commit 70674e252a

View File

@ -155,7 +155,7 @@ if [ "$SENTRY_DATA_NEEDS_MIGRATION" ]; then
# Use the web (Sentry) image so the file owners are kept as sentry:sentry
# The `\"` escape pattern is to make this compatible w/ Git Bash on Windows. See #329.
$dcr --entrypoint \"/bin/bash\" web -c \
"mkdir -p /tmp/files; mv /data/* /tmp/files/; mv /tmp/files /data/files"
"mkdir -p /tmp/files; mv /data/* /tmp/files/; mv /tmp/files /data/files; chown -R sentry:sentry /data"
fi
cleanup