#!/bin/bash set -euo pipefail {% if deployment_environment == 'staging' %} if [[ "${1:-}" == "wal-push" ]]; then echo "WAL uploads are disabled on staging" >&2 exit 1 fi {% endif %} set -a source /etc/wal-g/wal-g.env set +a exec /usr/local/bin/wal-g "$@"