diff options
author | Akram Hameed <5818835+adhameed@users.noreply.github.com> | 2019-01-16 15:12:03 +1100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-01-15 22:08:47 -0800 |
commit | a368821c96bc041a8d7f7dab7d4a653d59729d0e (patch) | |
tree | c6eaef20a92a41602f94b945b95f3f50f8c53cbf | |
parent | d183435dac7301100e6f359e1aa6ccf8b5d25645 (diff) | |
download | meta-openembedded-a368821c96bc041a8d7f7dab7d4a653d59729d0e.tar.gz |
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>
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/postgresql.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/postgresql.init b/meta-oe/recipes-dbs/postgresql/files/postgresql.init index 4a4f0cd168..1791e68b58 100644 --- a/meta-oe/recipes-dbs/postgresql/files/postgresql.init +++ b/meta-oe/recipes-dbs/postgresql/files/postgresql.init | |||
@@ -14,8 +14,8 @@ | |||
14 | # PGVERSION is the full package version, e.g., 8.4.0 | 14 | # PGVERSION is the full package version, e.g., 8.4.0 |
15 | # Note: the specfile inserts the correct value during package build | 15 | # Note: the specfile inserts the correct value during package build |
16 | PGVERSION=9.2.4 | 16 | PGVERSION=9.2.4 |
17 | # PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION) | 17 | # PGMAJORVERSION is major version, e.g., 10 (this should match PG_VERSION) |
18 | PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'` | 18 | PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\).*$/\1/'` |
19 | 19 | ||
20 | # Source function library. | 20 | # Source function library. |
21 | . /etc/init.d/functions | 21 | . /etc/init.d/functions |