mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Force locale to C during postgresql migration to avoid some stupid issue related to locale
This commit is contained in:
parent
6a618b0f33
commit
4805d43b96
1 changed files with 3 additions and 3 deletions
|
@ -36,9 +36,9 @@ class MyMigration(Migration):
|
||||||
raise YunohostError("migration_0017_not_enough_space", path="/var/lib/postgresql/")
|
raise YunohostError("migration_0017_not_enough_space", path="/var/lib/postgresql/")
|
||||||
|
|
||||||
self.runcmd("systemctl stop postgresql")
|
self.runcmd("systemctl stop postgresql")
|
||||||
self.runcmd("pg_dropcluster --stop 11 main || true") # We do not trigger an exception if the command fails because that probably means cluster 11 doesn't exists, which is fine because it's created during the pg_upgradecluster)
|
self.runcmd("LC_ALL=C pg_dropcluster --stop 11 main || true") # We do not trigger an exception if the command fails because that probably means cluster 11 doesn't exists, which is fine because it's created during the pg_upgradecluster)
|
||||||
self.runcmd("pg_upgradecluster -m upgrade 9.6 main")
|
self.runcmd("LC_ALL=C pg_upgradecluster -m upgrade 9.6 main")
|
||||||
self.runcmd("pg_dropcluster --stop 9.6 main")
|
self.runcmd("LC_ALL=C pg_dropcluster --stop 9.6 main")
|
||||||
self.runcmd("systemctl start postgresql")
|
self.runcmd("systemctl start postgresql")
|
||||||
|
|
||||||
def package_is_installed(self, package_name):
|
def package_is_installed(self, package_name):
|
||||||
|
|
Loading…
Add table
Reference in a new issue