From aca404a5d78b3690ea5ec7fa74e5e253719b3603 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 15 Jun 2018 17:25:27 +0200 Subject: [PATCH] Condition typo :< --- src/yunohost/data_migrations/0005_postgresql_9p4_to_9p6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/data_migrations/0005_postgresql_9p4_to_9p6.py b/src/yunohost/data_migrations/0005_postgresql_9p4_to_9p6.py index 9df51979d..871edcd19 100644 --- a/src/yunohost/data_migrations/0005_postgresql_9p4_to_9p6.py +++ b/src/yunohost/data_migrations/0005_postgresql_9p4_to_9p6.py @@ -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)