Centos9 support and removed centos7 support

This commit is contained in:
Spitap
2022-10-14 20:10:39 +02:00
parent b84abbbacc
commit b13cdbf0ba
8 changed files with 10 additions and 32 deletions

View File

@@ -97,7 +97,7 @@ class LetsEncryptCertificate(CertificateBackend):
self.config.has_option("nginx", "enabled") and
self.config.getboolean("nginx", "enabled")
):
if name == "ubuntu" or name.startswith("debian"):
if name == "ubuntu" or name.startswith("debian") or ("Centos" in name and version.startswith("9")):
package.backend.install("python3-certbot-nginx")
def generate_cert(self):