From cfc3c81075c2b2bfb4e34c937f51f2b196f6f959 Mon Sep 17 00:00:00 2001 From: Michael Banck Date: Fri, 8 Feb 2019 15:48:50 +0100 Subject: [PATCH] * debian/pg_createconfig_patroni: Remove obsolete SCOPE parsing code. --- debian/pg_createconfig_patroni | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/debian/pg_createconfig_patroni b/debian/pg_createconfig_patroni index 93c2061..8923bb1 100755 --- a/debian/pg_createconfig_patroni +++ b/debian/pg_createconfig_patroni @@ -66,16 +66,6 @@ fi # Postgres port. 2576 is 8008 - 5432. API_PORT=$((2576+$PORT)) -# support both '-' and '/' as separator -if [ $(echo $SCOPE | grep -- -) ] -then - VERSION=$(echo $SCOPE | sed -e 's/-.*//') - CLUSTER=$(echo $SCOPE | sed -e 's/.*-//') -else - VERSION=$(echo $SCOPE | sed -e 's/\/.*//') - CLUSTER=$(echo $SCOPE | sed -e 's/.*\///') -fi - # check DCS configuration if [ ! -f /etc/patroni/dcs.yml ]; then echo "DCS not configured yet, edit /etc/patroni/dcs.yml"