#!/bin/sh
# Clone/fetch jepsen to the shared docker volume
# Protect from an incident running on hosts which aren't n1, n2, etc.
hostname | grep -q "^n[0-9]\+"
[ $? -eq 0 ] || exit 1
cd /jepsen
# Use either upstream jepsen or any required fork, e.g.:
# if ! git clone https://github.com/aphyr/jepsen
if ! git clone -b rabbit_pcmk https://github.com/bogdando/jepsen
then
  cd ./jepsen
  git remote update
  git pull --ff-only
  cd -
fi
mkdir -p logs
sync
exit 0

#!/bin/sh
# Clone/fetch jepsen to the shared docker volume
# Protect from an incident running on hosts which aren't n1, n2, etc.
hostname | grep -q "^n[0-9]\+"
[ $? -eq 0 ] || exit 1
cd /jepsen
# Use either upstream jepsen or any required fork, e.g.:
# if ! git clone https://github.com/aphyr/jepsen
if ! git clone -b dev https://github.com/bogdando/jepsen
then
  cd ./jepsen
  git remote update
  git pull --ff-only
  cd -
fi
mkdir -p logs
sync
exit 0

Switch to my jepsen dev branch
Switch to my jepsen dev branch

Signed-off-by: Bogdan Dobrelya <0b23cd1e586d5f091fecb3391314c2b9ec1fd641@mirantis.com>
