Skip to content

Commit 210053d

Browse files
christianangvaleriap
authored andcommitted
Bump postgres blob to 9.4.9
[#128248715] Signed-off-by: Valeria Perticara <[email protected]>
1 parent 4a16077 commit 210053d

File tree

8 files changed

+25
-25
lines changed

8 files changed

+25
-25
lines changed

config/blobs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
postgres/postgresql-9.4.6.tar.gz:
3-
object_id: 67f068b8-1a22-477b-8a82-f10ae8f6110e
4-
sha: bd031beebd86bf149c497525dccf57eebe5a6add
5-
size: 23249307
2+
postgres/postgresql-9.4.9.tar.gz:
3+
object_id: ce1610e4-8865-4210-95b8-2ae747e35e19
4+
sha: c9d641eb69885672e5aacee413cd778d88b8420d
5+
size: 23300245

jobs/postgres/spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ templates:
1212

1313
packages:
1414
- postgres-common
15-
- postgres-9.4.6
15+
- postgres-9.4.9
1616

1717
properties:
1818
databases.db_scheme:

jobs/postgres/templates/postgres_ctl.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function main() {
88
action="${1}"
99

1010
local pgversion
11-
pgversion="postgres-9.4.6"
11+
pgversion="postgres-9.4.9"
1212

1313
JOB_DIR=/var/vcap/jobs/postgres
1414
PACKAGE_DIR="/var/vcap/packages/${pgversion}"
@@ -18,16 +18,16 @@ function main() {
1818
PACKAGE_DIR_OLD=/var/vcap/packages/postgres-unknown
1919
DATA_DIR_OLD="${STORE_DIR}/postgres-unknown"
2020

21+
if [[ -d "${STORE_DIR}/postgres-9.4.6" ]]; then
22+
DATA_DIR_OLD="${STORE_DIR}/postgres-9.4.6"
23+
PACKAGE_DIR_OLD=/var/vcap/packages/postgres-9.4.6
24+
fi
25+
2126
if [[ -d "${STORE_DIR}/postgres-9.4.5" ]]; then
2227
DATA_DIR_OLD="${STORE_DIR}/postgres-9.4.5"
2328
PACKAGE_DIR_OLD=/var/vcap/packages/postgres-9.4.5
2429
fi
2530

26-
if [[ -d "${STORE_DIR}/postgres-9.4.2" ]]; then
27-
DATA_DIR_OLD="${STORE_DIR}/postgres-9.4.2"
28-
PACKAGE_DIR_OLD=/var/vcap/packages/postgres-9.4.2
29-
fi
30-
3131
RUN_DIR=/var/vcap/sys/run/postgres
3232
LOG_DIR=/var/vcap/sys/log/postgres
3333

jobs/postgres/templates/postgres_start.sh.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function main() {
44
local pgversion
5-
pgversion="postgres-9.4.6"
5+
pgversion="postgres-9.4.9"
66

77
JOB_DIR=/var/vcap/jobs/postgres
88
PACKAGE_DIR="/var/vcap/packages/${pgversion}"
@@ -12,8 +12,8 @@ function main() {
1212
DATA_DIR_PREVIOUS="${STORE_DIR}/postgres-previous"
1313
DATA_DIR_OLD="${STORE_DIR}/postgres-unknown"
1414

15-
if [ -d "${STORE_DIR}/postgres-9.4.2" -a -f "${STORE_DIR}/postgres-9.4.2/postgresql.conf" ]; then
16-
DATA_DIR_OLD="${STORE_DIR}/postgres-9.4.2"
15+
if [ -d "${STORE_DIR}/postgres-9.4.6" -a -f "${STORE_DIR}/postgres-9.4.6/postgresql.conf" ]; then
16+
DATA_DIR_OLD="${STORE_DIR}/postgres-9.4.6"
1717
fi
1818

1919
if [ -d "${STORE_DIR}/postgres-9.4.5" -a -f "${STORE_DIR}/postgres-9.4.5/postgresql.conf" ]; then

jobs/postgres/templates/pre-start.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -exu
22

3-
pgversion="postgres-9.4.6"
3+
pgversion="postgres-9.4.9"
44
LOG_DIR=/var/vcap/sys/log/postgres
55
STORE_DIR=/var/vcap/store
66
DATA_DIR="${STORE_DIR}/${pgversion}"
@@ -11,16 +11,16 @@ DATA_DIR_PREVIOUS="${STORE_DIR}/postgres-previous"
1111
DATA_DIR_OLD="${STORE_DIR}/postgres-unknown"
1212

1313
function main() {
14+
if [[ -d "${STORE_DIR}/postgres-9.4.6" ]]; then
15+
chown -R vcap:vcap "${STORE_DIR}/postgres-9.4.6"
16+
chmod 700 "${STORE_DIR}/postgres-9.4.6"
17+
fi
18+
1419
if [[ -d "${STORE_DIR}/postgres-9.4.5" ]]; then
1520
chown -R vcap:vcap "${STORE_DIR}/postgres-9.4.5"
1621
chmod 700 "${STORE_DIR}/postgres-9.4.5"
1722
fi
1823

19-
if [[ -d "${STORE_DIR}/postgres-9.4.2" ]]; then
20-
chown -R vcap:vcap "${STORE_DIR}/postgres-9.4.2"
21-
chmod 700 "${STORE_DIR}/postgres-9.4.2"
22-
fi
23-
2424
mkdir -p "${LOG_DIR}"
2525
chown -R vcap:vcap "${LOG_DIR}"
2626

packages/postgres-9.4.6/spec

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/postgres-9.4.6/packaging renamed to packages/postgres-9.4.9/packaging

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function main() {
44
local pgversion
5-
pgversion="postgresql-9.4.6"
5+
pgversion="postgresql-9.4.9"
66

77
extract_archive "${pgversion}"
88
compile "${pgversion}"

packages/postgres-9.4.9/spec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
name: postgres-9.4.9
3+
files:
4+
- postgres/postgresql-9.4.9.tar.gz

0 commit comments

Comments
 (0)