Change: regular expressions.
Add [^ -] to exclude duplicate. Example: PostgreSQL 11.9 (Debian 11.9-0+deb10u1)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user