* debian/pg_createconfig_patroni: Remove obsolete SCOPE parsing code.

This commit is contained in:
Michael Banck 2019-02-08 15:48:50 +01:00
parent fbfd686a2b
commit cfc3c81075

View file

@ -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"