Files
zulip/puppet/zulip-internal/files/postgresql/env-wal-e
Zev Benjamin dd678465ae [manual] Move puppet modules to the top level
The new puppet.conf file has to be moved into place manually.

(imported from commit 253d9a95386dae8c803a998ce2dc7e8be40c880a)
2013-10-30 15:42:26 -04:00

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 "$@"