diff --git a/INSTALL.debian b/INSTALL.debian index f158d1266..a471b1eeb 100644 --- a/INSTALL.debian +++ b/INSTALL.debian @@ -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