python3-certbot-nginx is only available on Debian based systems.
see #437
This commit is contained in:
@@ -92,12 +92,13 @@ class LetsEncryptCertificate(CertificateBackend):
|
|||||||
else:
|
else:
|
||||||
utils.printcolor("Failed to install certbot, aborting.", utils.RED)
|
utils.printcolor("Failed to install certbot, aborting.", utils.RED)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
#Nginx plugin certbot
|
# Nginx plugin certbot
|
||||||
if (self.config.has_option("nginx", "enabled") and
|
if (
|
||||||
self.config.getboolean("nginx", "enabled")):
|
self.config.has_option("nginx", "enabled") and
|
||||||
package.backend.update()
|
self.config.getboolean("nginx", "enabled")
|
||||||
package.backend.install("python3-certbot-nginx")
|
):
|
||||||
|
if name == "ubuntu" or name.startswith("debian"):
|
||||||
|
package.backend.install("python3-certbot-nginx")
|
||||||
|
|
||||||
def generate_cert(self):
|
def generate_cert(self):
|
||||||
"""Create a certificate."""
|
"""Create a certificate."""
|
||||||
|
|||||||
Reference in New Issue
Block a user