mirror of
https://github.com/getsentry/self-hosted.git
synced 2026-02-06 10:57:17 +00:00
test(backup): Use --no-prompt for backup tests (#2618)
This commit is contained in:
parent
bf66ddd224
commit
76ab9a596e
@ -10,7 +10,7 @@ echo "Creating backup..."
|
||||
# to group and owner. Instead, try creating the empty file and then give everyone write access to the backup file
|
||||
touch $(pwd)/sentry/backup.json
|
||||
chmod 666 $(pwd)/sentry/backup.json
|
||||
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh export global /sentry-admin/backup.json
|
||||
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh export global /sentry-admin/backup.json --no-prompt
|
||||
if [ ! -s "$(pwd)/sentry/backup.json" ]; then
|
||||
echo "Backup file is empty"
|
||||
exit 1
|
||||
@ -31,6 +31,6 @@ source install/set-up-and-migrate-database.sh
|
||||
$dc up -d
|
||||
|
||||
echo "Importing backup..."
|
||||
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh import global /sentry-admin/backup.json
|
||||
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh import global /sentry-admin/backup.json --no-prompt
|
||||
|
||||
rm $(pwd)/sentry/backup.json
|
||||
|
||||
Loading…
Reference in New Issue
Block a user