more refactoring

This commit is contained in:
Spitap
2022-09-19 15:13:44 +02:00
parent f3811b4b39
commit d75d83f202
7 changed files with 44 additions and 50 deletions

View File

@@ -46,10 +46,10 @@ class Postwhite(base.Installer):
self.install_from_archive(SPF_TOOLS_REPOSITORY, install_dir)
postw_dir = self.install_from_archive(
POSTWHITE_REPOSITORY, install_dir)
postwhiteBackupConf = os.path.join(
postwhite_backup_configuration = os.path.join(
self.restore, "custom/postwhite.conf")
if self.restore and os.path.isfile(postwhiteBackupConf):
utils.copy_file(postwhiteBackupConf, "/etc")
if self.restore and os.path.isfile(postwhite_backup_configuration):
utils.copy_file(postwhite_backup_configuration, "/etc")
utils.printcolor(
"postwhite.conf restored from backup", utils.GREEN)
else: