From 70674e252acc867d125e8f7fbdccde287fb361a2 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Mon, 13 Jan 2020 22:25:27 +0300 Subject: [PATCH] fix(data-migration): Make sure to chown the /data folder on sentry (#336) Fixes #334. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index eb05ca2..0b789a5 100755 --- a/install.sh +++ b/install.sh @@ -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