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"