Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
5756e8a1
Verified
Commit
5756e8a1
authored
Nov 23, 2018
by
Florian Pritz
Browse files
upgrade_pg.sh: Copy SSL cert files
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
4346bc30
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/postgres/files/upgrade_pg.sh
View file @
5756e8a1
...
...
@@ -36,8 +36,9 @@ su - postgres -c 'mkdir /var/lib/postgres/data'
su - postgres
-c
"initdb --locale
$LANG
-E UTF8 -D /var/lib/postgres/data"
vimdiff
"/var/lib/postgres/data/pg_hba.conf"
"/var/lib/postgres/data-
${
FROM_VERSION
}
/pg_hba.conf"
vimdiff
"/var/lib/postgres/data/postgresql.conf"
"/var/lib/postgres/data-
${
FROM_VERSION
}
/postgresql.conf"
#cp -avx "/var/lib/postgres/data-${FROM_VERSION}/server.crt" "/var/lib/postgres/data/server.crt"
#cp -avx "/var/lib/postgres/data-${FROM_VERSION}/server.key" "/var/lib/postgres/data/server.key"
for
file
in
fullchain.pem chain.pem privkey.pem
;
do
cp
-avx
"/var/lib/postgres/data-
${
FROM_VERSION
}
/
$file
"
"/var/lib/postgres/data/
$file
"
done
systemctl stop postgresql.service
su - postgres
-c
"pg_upgrade -b /opt/pgsql-
${
FROM_VERSION
}
/bin/ -B /usr/bin/ -d /var/lib/postgres/data-
${
FROM_VERSION
}
-D /var/lib/postgres/data"
systemctl daemon-reload
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment