File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
ansible/files/admin_api_scripts Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ function initiate_upgrade {
106
106
cp /root/pg_upgrade_pgsodium_getkey.sh " $PGSHARENEW /extension/pgsodium_getkey"
107
107
chmod +x " $PGSHARENEW /extension/pgsodium_getkey"
108
108
109
- if [ -f " $MOUNTPOINT /pgsodium_root.key" ]; then
110
- cp " $MOUNTPOINT /pgsodium_root.key" /etc/postgresql-custom/pgsodium_root.key
109
+ if [ -f " $MOUNT_POINT /pgsodium_root.key" ]; then
110
+ cp " $MOUNT_POINT /pgsodium_root.key" /etc/postgresql-custom/pgsodium_root.key
111
111
chown postgres:postgres /etc/postgresql-custom/pgsodium_root.key
112
112
chmod 600 /etc/postgresql-custom/pgsodium_root.key
113
113
fi
147
147
mv /var/lib/postgresql /var/lib/postgresql.bak
148
148
ln -s /tmp/pg_upgrade_bin/15/share /var/lib/postgresql
149
149
150
+ if [ ! -L /var/lib/postgresql.bak/data ]; then
151
+ ln -s /var/lib/postgresql.bak/data /var/lib/postgresql/data
152
+ fi
153
+
150
154
systemctl stop postgresql
151
155
su -c " $UPGRADE_COMMAND " -s $SHELL postgres
152
156
Original file line number Diff line number Diff line change 1
- postgres-version = " 15.1.0.28 "
1
+ postgres-version = " 15.1.0.29 "
You can’t perform that action at this time.
0 commit comments