Skip to content

Commit 688c65f

Browse files
Tweak permissioning of backup file in backup script to read/write for all users (#2043)
change permission of backup file to read/write for all users
1 parent 82227f3 commit 688c65f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/_lib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ function clean() {
6262
}
6363

6464
function backup() {
65-
chmod +w $(pwd)/sentry
65+
touch $(pwd)/sentry/backup.json
66+
chmod 666 $(pwd)/sentry/backup.json
6667
docker-compose run -v $(pwd)/sentry:/sentry-data/backup --rm -T -e SENTRY_LOG_LEVEL=CRITICAL web export /sentry-data/backup/backup.json
6768
}
6869

0 commit comments

Comments
 (0)