2
0

fix(install): support for Windows and Git Bash (#335)

Fixes #329.
This commit is contained in:
Simon Golms 2020-01-09 20:55:20 +01:00 committed by Burak Yigit Kaya
parent d54c1a8d6c
commit bc23448141

View File

@ -151,7 +151,8 @@ SENTRY_DATA_NEEDS_MIGRATION=$(docker run --rm -v sentry-data:/data alpine ash -c
if [ "$SENTRY_DATA_NEEDS_MIGRATION" ]; then if [ "$SENTRY_DATA_NEEDS_MIGRATION" ]; then
echo "Migrating file storage..." echo "Migrating file storage..."
# 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
$dcr --entrypoint /bin/bash web -c \ # 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"
fi fi