mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
postgresql: Update the regex to determine PGMAJORVERSION to match v10+ database clusters
Older versions of postgresql would generate MAJVER.MINVER in new clusters. 10+ do not. Update the regex to determine PGMAJORVERSION as a single int. Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
# PGVERSION is the full package version, e.g., 8.4.0
|
||||
# Note: the specfile inserts the correct value during package build
|
||||
PGVERSION=9.2.4
|
||||
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
|
||||
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`
|
||||
# PGMAJORVERSION is major version, e.g., 10 (this should match PG_VERSION)
|
||||
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\).*$/\1/'`
|
||||
|
||||
# Source function library.
|
||||
. /etc/init.d/functions
|
||||
|
||||
Reference in New Issue
Block a user