* debian/pg_createconfig_patroni: Remove obsolete SCOPE parsing code.
This commit is contained in:
parent
fbfd686a2b
commit
cfc3c81075
10
debian/pg_createconfig_patroni
vendored
10
debian/pg_createconfig_patroni
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue