Skip to content

Commit

Permalink
Fixed file copy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo authored and Spitfireap committed Oct 3, 2024
1 parent 0aea9d0 commit 1d04ab3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modoboa_installer/scripts/dovecot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_packages(self):
if package.backend.FORMAT == "deb":
if "pop3" in self.config.get("dovecot", "extra_protocols"):
packages += ["dovecot-pop3d"]
return super(Dovecot, self).get_packages() + packages
return super().get_packages() + packages

def install_packages(self):
"""Preconfigure Dovecot if needed."""
Expand Down Expand Up @@ -139,7 +139,8 @@ def post_run(self):
self.get_file_path("fix_modoboa_postgres_schema.sql")
)
for f in glob.glob("{}/*".format(self.get_file_path("conf.d"))):
utils.copy_file(f, "{}/conf.d".format(self.config_dir))
if os.path.isfile(f):
utils.copy_file(f, "{}/conf.d".format(self.config_dir))
# Make postlogin script executable
utils.exec_cmd("chmod +x /usr/local/bin/postlogin.sh")
# Only root should have read access to the 10-ssl-keys.try
Expand Down

0 comments on commit 1d04ab3

Please sign in to comment.