Change: regular expressions.

Add [^ -] to exclude duplicate.
Example:
PostgreSQL 11.9 (Debian 11.9-0+deb10u1)
This commit is contained in:
Vladimir-A
2020-12-15 05:15:57 +03:00
committed by GitHub
parent cf70a651f0
commit 0f44d8b974

View File

@@ -77,7 +77,7 @@ chsh -s /bin/bash danbooru
usermod -G danbooru,sudo danbooru
# Set up Postgres
export PG_VERSION=`pg_config --version | egrep -o '[0-9]{1,}\.[0-9]{1,}'`
export PG_VERSION=`pg_config --version | egrep -o '[0-9]{1,}\.[0-9]{1,}[^-]'`
if verlte 9.5 $PG_VERSION ; then
# only do this on postgres 9.5 and above