Merge pull request #428 from Spitfireap/Fix-missing-packages
Add missing packages
This commit is contained in:
@@ -147,7 +147,7 @@ class MySQL(Database):
|
||||
"""MySQL backend."""
|
||||
|
||||
packages = {
|
||||
"deb": ["mariadb-server"],
|
||||
"deb": ["mariadb-server", "libmysqlclient-dev"],
|
||||
"rpm": ["mariadb", "mariadb-devel", "mariadb-server"],
|
||||
}
|
||||
service = "mariadb"
|
||||
|
||||
@@ -20,6 +20,7 @@ class Postwhite(base.Installer):
|
||||
]
|
||||
no_daemon = True
|
||||
packages = {
|
||||
"deb": ["bind9-host"],
|
||||
"rpm": ["bind-utils"]
|
||||
}
|
||||
|
||||
|
||||
@@ -92,6 +92,12 @@ class LetsEncryptCertificate(CertificateBackend):
|
||||
else:
|
||||
utils.printcolor("Failed to install certbot, aborting.", utils.RED)
|
||||
sys.exit(1)
|
||||
#Nginx plugin certbot
|
||||
if (self.config.has_option("nginx", "enabled") and
|
||||
self.config.getboolean("nginx", "enabled")):
|
||||
package.backend.update()
|
||||
package.backend.install("python3-certbot-nginx")
|
||||
|
||||
|
||||
def generate_cert(self):
|
||||
"""Create a certificate."""
|
||||
|
||||
Reference in New Issue
Block a user