Skip to content

Commit

Permalink
Merge pull request #16 from zalando/bugfix/restart_failure
Browse files Browse the repository at this point in the history
Bugfix for restarting docker container.
  • Loading branch information
Oleksii Kliukin committed Aug 4, 2015
2 parents a2e44dd + 68e1ada commit bb2d826
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions postgres-appliance/postgres_ha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function write_postgres_yaml
local pg_port=5432
local api_port=8008

cat >> postgres.yml <<__EOF__
cat > postgres.yml <<__EOF__
ttl: &ttl 30
loop_wait: &loop_wait 10
scope: &scope $SCOPE
Expand Down Expand Up @@ -105,8 +105,11 @@ function write_archive_command_environment

write_postgres_yaml

# get patroni code
git clone https://github.com/zalando/patroni.git
if [[ ! -d "patroni" ]]
then
# get patroni code
git clone https://github.com/zalando/patroni.git
fi

write_archive_command_environment

Expand Down

0 comments on commit bb2d826

Please sign in to comment.