Skip to content

Commit 075a7ca

Browse files
committed
bug fix: #1019, this should refresh mail ssl incase its expired/renewd
1 parent 6cb68a6 commit 075a7ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plogical/IncScheduler.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,11 @@ def SendToS3Cloud(FileName, RemoteBackupCofigID, backupID, scheduleID):
13591359
print('%s. [SendToS3Cloud]' % (str(msg)))
13601360
logging.writeToFile('%s. [SendToS3Cloud]' % (str(msg)))
13611361

1362+
@staticmethod
1363+
def FixMailSSL():
1364+
for website in Websites.objects.all():
1365+
virtualHostUtilities.setupAutoDiscover(1, '/home/cyberpanel/templogs', website.domain, website.admin)
1366+
13621367

13631368
def main():
13641369
parser = argparse.ArgumentParser(description='CyberPanel Installer')
@@ -1381,6 +1386,9 @@ def main():
13811386
IncScheduler.CalculateAndUpdateDiskUsage()
13821387
IncScheduler.WPUpdates()
13831388

1389+
if args.function == 'Weekly':
1390+
IncScheduler.FixMailSSL()
1391+
13841392
### Run incremental backups in sep thread
13851393

13861394
ib = IncScheduler('startBackup', {'freq': args.function})

0 commit comments

Comments
 (0)