mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Condition typo :<
This commit is contained in:
parent
898d665900
commit
aca404a5d7
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class MyMigration(Migration):
|
|||
if not self.package_is_installed("postgresql-9.6"):
|
||||
raise MoulinetteError(m18n.n("migration_0005_postgresql_96_not_installed"))
|
||||
|
||||
if not space_used_by_directory("/var/lib/postgresql/9.4") < free_space_in_directory("/var/lib/postgresql"):
|
||||
if not space_used_by_directory("/var/lib/postgresql/9.4") > free_space_in_directory("/var/lib/postgresql"):
|
||||
raise MoulinetteError(m18n.n("migration_0005_not_enough_space", path="/var/lib/postgresql/"))
|
||||
|
||||
subprocess.check_call("service postgresql stop", shell=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue