mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Postgresql migration
could not stop old cluster, please do that manually
This commit is contained in:
parent
edd187eb90
commit
59bcd29cbb
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ class MyMigration(Migration):
|
|||
"LC_ALL=C pg_dropcluster --stop 13 main || true"
|
||||
) # We do not trigger an exception if the command fails because that probably means cluster 13 doesn't exists, which is fine because it's created during the pg_upgradecluster)
|
||||
time.sleep(3)
|
||||
self.runcmd("LC_ALL=C pg_upgradecluster -m upgrade 11 main")
|
||||
self.runcmd("LC_ALL=C pg_upgradecluster -m upgrade 11 main || true")
|
||||
time.sleep(3)
|
||||
self.runcmd("LC_ALL=C pg_dropcluster --stop 11 main")
|
||||
self.runcmd("systemctl start postgresql")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue