mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Ensure postgresql is upgraded to 15.
Some apps required pg 16, so pg_upgradecluster tries to upgrade 13 to 16 and fails (cluster already exists)
This commit is contained in:
parent
443eac47ca
commit
03a5c3d144
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class MyMigration(Migration):
|
||||||
"LC_ALL=C pg_dropcluster --stop 15 main || true"
|
"LC_ALL=C pg_dropcluster --stop 15 main || true"
|
||||||
) # We do not trigger an exception if the command fails because that probably means cluster 15 doesn't exists, which is fine because it's created during the pg_upgradecluster)
|
) # We do not trigger an exception if the command fails because that probably means cluster 15 doesn't exists, which is fine because it's created during the pg_upgradecluster)
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
self.runcmd("LC_ALL=C pg_upgradecluster -m upgrade 13 main")
|
self.runcmd("LC_ALL=C pg_upgradecluster -m upgrade 13 main -v 15")
|
||||||
self.runcmd("LC_ALL=C pg_dropcluster --stop 13 main")
|
self.runcmd("LC_ALL=C pg_dropcluster --stop 13 main")
|
||||||
self.runcmd("systemctl start postgresql")
|
self.runcmd("systemctl start postgresql")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue