diff --git a/debian/pg_createconfig_patroni b/debian/pg_createconfig_patroni index 0ef1851..31bb8e0 100755 --- a/debian/pg_createconfig_patroni +++ b/debian/pg_createconfig_patroni @@ -137,9 +137,9 @@ if [ -z "$HOSTIP" ]; then if [ -x /bin/ip ]; then HOSTIP=$(/bin/ip -4 route get 8.8.8.8 | grep ^8.8.8.8 | sed -e s/.*src.// -e s/\ .*//g) else - echo "iproute2 package missing, cannot determine host ip addresss and --hostip is not set" - rm -f $CONFIG_FILE - exit 1 + echo "iproute2 package missing, cannot determine host ip addresss and --hostip is not set" + rm -f $CONFIG_FILE + exit 1 fi fi @@ -147,9 +147,9 @@ if [ -z "$NETWORK" ]; then if [ -x /bin/ip ]; then NETWORK=$(/bin/ip -4 route get 8.8.8.8 | grep ^8.8.8.8 | sed -e s/.*src.// -e s/\ .*//g -e s/\.[0-9]*$/.0/)/24 else - echo "iproute2 package missing, cannot determine network and --network is not set" - rm -f $CONFIG_FILE - exit 1 + echo "iproute2 package missing, cannot determine network and --network is not set" + rm -f $CONFIG_FILE + exit 1 fi fi