fix(data-migration): Make sure to chown the /data folder on sentry (#336)
Fixes #334.
This commit is contained in:
parent
a655b4799c
commit
70674e252a
@ -155,7 +155,7 @@ if [ "$SENTRY_DATA_NEEDS_MIGRATION" ]; then
|
|||||||
# Use the web (Sentry) image so the file owners are kept as sentry:sentry
|
# 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.
|
# The `\"` escape pattern is to make this compatible w/ Git Bash on Windows. See #329.
|
||||||
$dcr --entrypoint \"/bin/bash\" web -c \
|
$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
|
fi
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
Reference in New Issue
Block a user