Fix #393
This commit is contained in:
@@ -74,7 +74,7 @@ class LetsEncryptCertificate(CertificateBackend):
|
|||||||
|
|
||||||
def install_certbot(self):
|
def install_certbot(self):
|
||||||
"""Install certbot script to generate cert."""
|
"""Install certbot script to generate cert."""
|
||||||
name, version, _id = utils.dist_info()
|
name, version = utils.dist_info()
|
||||||
name = name.lower()
|
name = name.lower()
|
||||||
if name == "ubuntu":
|
if name == "ubuntu":
|
||||||
package.backend.update()
|
package.backend.update()
|
||||||
@@ -84,7 +84,7 @@ class LetsEncryptCertificate(CertificateBackend):
|
|||||||
utils.exec_cmd("add-apt-repository -y ppa:certbot/certbot")
|
utils.exec_cmd("add-apt-repository -y ppa:certbot/certbot")
|
||||||
package.backend.update()
|
package.backend.update()
|
||||||
package.backend.install("certbot")
|
package.backend.install("certbot")
|
||||||
elif name == "debian":
|
elif name.startswith("debian"):
|
||||||
package.backend.update()
|
package.backend.update()
|
||||||
package.backend.install("certbot")
|
package.backend.install("certbot")
|
||||||
elif "centos" in name:
|
elif "centos" in name:
|
||||||
|
|||||||
Reference in New Issue
Block a user