File: ci.sh

package info (click to toggle)
check-pgbackrest 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,396 kB
  • sloc: perl: 972; sh: 488; python: 145; makefile: 33
file content (17 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
set -o errexit
set -o nounset
cd "$(dirname "$0")"

perl config.pl --force --architecture "$ARCH" \
               --cluster-path "$CLPATH" --cluster-name "$CLNAME" \
               --db-type "$DBTYPE" --db-version "$DBVERSION" \
               --docker-image "$DOCKERI" --extra-vars "$EXTRA_VARS"
sed -i "s/node1/$CLNAME-1/g" "$CLPATH/$CLNAME/config.yml"
sed -i "s/node2/$CLNAME-2/g" "$CLPATH/$CLNAME/config.yml"
sed -i "s/node3/$CLNAME-3/g" "$CLPATH/$CLNAME/config.yml"
sed -i "s/bck-host/$CLNAME-bck/g" "$CLPATH/$CLNAME/config.yml"
echo "ACTIVITY = '$ACTIVITY'"
export ACTIVITY=$ACTIVITY
echo "RUN_ARGS = '$RUN_ARGS'"
sh run.sh -c "$CLPATH/$CLNAME" "$RUN_ARGS"