1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#!/usr/bin/env bash
set -o errexit
set -o nounset
cd /vagrant
export RUN_ARGS=""
if [ "$ACTIVITY" == "only" ]; then
export ACTIVITY=true
export RUN_ARGS="-A"
fi
echo "ARCH = '$ARCH'"
echo "PGBR_BUILD = '$PGBR_BUILD'"
echo "PGBR_REPO_TYPE = '$PGBR_REPO_TYPE'"
echo "PROFILE = '$PROFILE'"
source profile.d/vagrant.profile
source profile.d/$PROFILE.profile
if [ ! -z "$EXTRA" ]; then
export EXTRA_VARS="$EXTRA_VARS $EXTRA"
fi
if $PGBR_BUILD; then
export EXTRA_VARS="$EXTRA_VARS pgbackrest_build=true"
fi
if [ ! -z "$PGBR_REPO_TYPE" ]; then
export EXTRA_VARS="$EXTRA_VARS pgbackrest_repo_type=$PGBR_REPO_TYPE"
[ "$PGBR_REPO_TYPE" = "posix" ] && export EXTRA_VARS="$EXTRA_VARS pgbackrest_repo_path=/shared/repo1"
fi
[ ! -z "$pgbackrest_git_url" ] && export EXTRA_VARS="$EXTRA_VARS pgbackrest_git_url=$pgbackrest_git_url"
[ ! -z "$pgbackrest_git_branch" ] && export EXTRA_VARS="$EXTRA_VARS pgbackrest_git_branch=$pgbackrest_git_branch"
echo "EXTRA_VARS = '$EXTRA_VARS'"
echo "CLNAME=$CLNAME"
sh ci.sh
|