mirror of https://github.com/zulip/zulip.git
15 lines
459 B
Bash
Executable File
15 lines
459 B
Bash
Executable File
#!/bin/sh
|
|
if [ -z "$ZULIP_CONF" ]; then
|
|
ZULIP_CONF=/etc/zulip/zulip.conf
|
|
fi
|
|
|
|
export AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxx
|
|
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
s3_backup_bucket=$(crudini --get $ZULIP_CONF database s3_backup_bucket 2>&1)
|
|
if [ $? -ne 0 ]; then
|
|
echo "Could not determine which s3 bucket to use:" $s3_backup_bucket
|
|
exit 1
|
|
fi
|
|
export WALE_S3_PREFIX=s3://$s3_backup_bucket
|
|
exec /usr/local/bin/wal-e "$@"
|