From 37bc21dfd34d1445d8d4b3b00744e231edc346c9 Mon Sep 17 00:00:00 2001 From: Spitap Date: Tue, 26 Jul 2022 10:36:08 +0200 Subject: [PATCH] Backup postewhite.conf instead of custom whitelist Postwhite.conf contains a custom host list --- modoboa_installer/scripts/backup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modoboa_installer/scripts/backup.py b/modoboa_installer/scripts/backup.py index 39387c2..a3717b7 100644 --- a/modoboa_installer/scripts/backup.py +++ b/modoboa_installer/scripts/backup.py @@ -138,7 +138,7 @@ class Backup(): def backupCustomConfig(self): """Custom config : - Amavis : /etc/amavis/conf.d/99-custom - - Postscreen : /etc/postfix/custom_whitelist.cidr + - Postwhite : /etc/postwhite.conf Feel free to suggest to add others!""" utils.printcolor("Backing up some custom configuration...", utils.MAGENTA) @@ -150,11 +150,11 @@ class Backup(): utils.copy_file(amavis_custom, custom_path) utils.printcolor("Amavis custom configuration saved!", utils.GREEN) - """POSTSCREEN""" - postscreen_custom = "/etc/postfix/custom_whitelist.cidr" - if os.path.isfile(postscreen_custom): - utils.copy_file(postscreen_custom, custom_path) - utils.printcolor("Postscreen whitelist custom configuration saved!", utils.GREEN) + """POSTWHITE""" + postswhite_custom = "/etc/postwhite.conf" + if os.path.isfile(postswhite_custom): + utils.copy_file(postswhite_custom, custom_path) + utils.printcolor("Postwhite configuration saved!", utils.GREEN) def backupDBs(self):