review fix

This commit is contained in:
Spitap
2022-11-03 10:54:06 +01:00
parent 5c9d5c9a03
commit 554611b366
6 changed files with 21 additions and 17 deletions

View File

@@ -17,10 +17,10 @@ class Restore:
"Provided path is not a directory !", utils.RED)
sys.exit(1)
modobasql_file = os.path.join(restore, "databases/modoboa.sql")
if not os.path.isfile(modobasql_file):
modoba_sql_file = os.path.join(restore, "databases/modoboa.sql")
if not os.path.isfile(modoba_sql_file):
utils.printcolor(
modobasql_file + " not found, please check your backup", utils.RED)
modoba_sql_file + " not found, please check your backup", utils.RED)
sys.exit(1)
# Everything seems allright here, proceding...