diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..491deae --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: pip + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 0000000..eacc2eb --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,28 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 60 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 14 +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - security + - bug + - dependencies + - enhancement + - looking-for-sponsors + - documentation +# Label to use when marking an issue as stale +staleLabel: stale +# Set to true to ignore issues in a milestone (defaults to false) +exemptMilestones: true +# Set to true to ignore issues with an assignee (defaults to false) +exemptAssignees: true +# Limit to only `issues` or `pulls` +only: issues +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false diff --git a/README.rst b/README.rst index 048687e..d3f7485 100644 --- a/README.rst +++ b/README.rst @@ -22,7 +22,8 @@ An installer which deploy a complete mail server based on Modoboa. The server (physical or virtual) running Modoboa needs at least 2GB of RAM in order to compile the required dependencies during the installation process. Passwords should not contain any special characters - as they may cause the installation to fail + as they may cause the installation to fail. It's important to set a FQDN + before, otherwise the installation will break. Usage:: diff --git a/modoboa_installer/ssl.py b/modoboa_installer/ssl.py index d4f16ea..414ba0f 100644 --- a/modoboa_installer/ssl.py +++ b/modoboa_installer/ssl.py @@ -75,7 +75,8 @@ class LetsEncryptCertificate(CertificateBackend): def install_certbot(self): """Install certbot script to generate cert.""" name, version, _id = utils.dist_info() - if name == "Ubuntu": + name = name.lower() + if name == "ubuntu": package.backend.update() package.backend.install("software-properties-common") utils.exec_cmd("add-apt-repository -y universe") @@ -83,10 +84,10 @@ class LetsEncryptCertificate(CertificateBackend): utils.exec_cmd("add-apt-repository -y ppa:certbot/certbot") package.backend.update() package.backend.install("certbot") - elif name == "Debian": + elif name == "debian": package.backend.update() package.backend.install("certbot") - elif "CentOS" in name: + elif "centos" in name: package.backend.install("certbot") else: utils.printcolor("Failed to install certbot, aborting.", utils.RED)