bug fix: allow - in website creation

This commit is contained in:
Usman Nasir
2020-02-25 19:43:28 +05:00
parent 8bcdc43c66
commit 5e2f9aa085
4 changed files with 11 additions and 11 deletions

View File

@@ -39,7 +39,7 @@ class backupScheduleLocal:
backupSchedule.remoteBackupLogging(backupLogPath, "")
for virtualHost in os.listdir("/home"):
if match(r'^[a-zA-Z0-9]*[a-zA-Z0-9-]{0,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):
try:
retValues = backupSchedule.createLocalBackup(virtualHost, backupLogPath)