Skip to content

Commit

Permalink
fix(install): support for Windows and Git Bash (getsentry#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms authored and BYK committed Jan 9, 2020
1 parent d54c1a8 commit bc23448
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ SENTRY_DATA_NEEDS_MIGRATION=$(docker run --rm -v sentry-data:/data alpine ash -c
if [ "$SENTRY_DATA_NEEDS_MIGRATION" ]; then
echo "Migrating file storage..."
# 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"
fi

Expand Down

0 comments on commit bc23448

Please sign in to comment.