Merge pull request #464 from Spitfireap/postwhite-conf-fix
Postwhite conf file not being copied
This commit is contained in:
@@ -47,8 +47,10 @@ class Postwhite(base.Installer):
|
|||||||
self.install_from_archive(SPF_TOOLS_REPOSITORY, install_dir)
|
self.install_from_archive(SPF_TOOLS_REPOSITORY, install_dir)
|
||||||
self.postw_dir = self.install_from_archive(
|
self.postw_dir = self.install_from_archive(
|
||||||
POSTWHITE_REPOSITORY, install_dir)
|
POSTWHITE_REPOSITORY, install_dir)
|
||||||
postw_bin = os.path.join(self.postw_dir, "postwhite")
|
utils.copy_file(
|
||||||
utils.exec_cmd("{} /etc/postwhite.conf".format(postw_bin))
|
os.path.join(self.postw_dir, "postwhite.conf"), self.config_dir)
|
||||||
|
self.postw_bin = os.path.join(self.postw_dir, "postwhite")
|
||||||
|
utils.exec_cmd("{} /etc/postwhite.conf".format(self.postw_bin))
|
||||||
|
|
||||||
def custom_backup(self, path):
|
def custom_backup(self, path):
|
||||||
"""Backup custom configuration if any."""
|
"""Backup custom configuration if any."""
|
||||||
@@ -65,6 +67,3 @@ class Postwhite(base.Installer):
|
|||||||
if os.path.isfile(postwhite_backup_configuration):
|
if os.path.isfile(postwhite_backup_configuration):
|
||||||
utils.copy_file(postwhite_backup_configuration, self.config_dir)
|
utils.copy_file(postwhite_backup_configuration, self.config_dir)
|
||||||
utils.success("postwhite.conf restored from backup")
|
utils.success("postwhite.conf restored from backup")
|
||||||
else:
|
|
||||||
utils.copy_file(
|
|
||||||
os.path.join(self.postw_dir, "postwhite.conf"), self.config_dir)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user