zulip/puppet/zulip_internal/files/postgresql/env-wal-e

10 lines
353 B
Bash
Executable File

#!/bin/sh
export AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
if grep -q postgres /etc/zulip/machinetype; then
export WALE_S3_PREFIX=s3://humbug-postgres-backups
else
export WALE_S3_PREFIX=s3://humbug-postgres-`cat /etc/zulip/machinetype`-backups
fi
exec /usr/local/bin/wal-e "$@"