bug fix: allow valid domains creation

This commit is contained in:
Usman Nasir
2020-02-21 14:07:18 +05:00
parent 495a0d2ff1
commit f12f898a01
4 changed files with 11 additions and 11 deletions

View File

@@ -249,7 +249,7 @@ class backupSchedule:
pass
for virtualHost in os.listdir("/home"):
if match(r'^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$', virtualHost, M | I):
if match(r'^[a-zA-Z0-9]*[a-zA-Z0-9-]{0,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$', virtualHost, M | I):
backupSchedule.createBackup(virtualHost, ipAddress, backupLogPath, port)