Fix acme certificate on domain

This commit is contained in:
VirtuBox
2019-11-05 16:11:43 +01:00
parent a7d03b6098
commit 914f049852
8 changed files with 33 additions and 29 deletions

View File

@@ -172,7 +172,7 @@ class WOAcme:
reader = csv.reader(certfile, 'acmeconf')
for row in reader:
# check if domain exist
if wo_domain_name in row[0]:
if wo_domain_name == row[0]:
# check if cert expiration exist
if not row[3] == '':
return True

View File

@@ -149,7 +149,12 @@ class WOVar():
wo_mysql = ["mariadb-server", "percona-toolkit"]
if wo_distro == 'raspbian':
wo_mysql = wo_mysql + ["python3-mysqldb"]
if wo_platform_codename == 'stretch':
mariadb_ver = '10.1'
else:
mariadb_ver = '10.3'
else:
mariadb_ver = '10.3'
if wo_platform_codename == 'jessie':
wo_mysql = wo_mysql + ["python3-mysql.connector"]
else: