mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +01:00
bug fix: https://github.com/usmannasir/cyberpanel/issues/1019, this should refresh mail ssl incase its expired/renewd
This commit is contained in:
@@ -1359,6 +1359,11 @@ Automatic backup failed for %s on %s.
|
|||||||
print('%s. [SendToS3Cloud]' % (str(msg)))
|
print('%s. [SendToS3Cloud]' % (str(msg)))
|
||||||
logging.writeToFile('%s. [SendToS3Cloud]' % (str(msg)))
|
logging.writeToFile('%s. [SendToS3Cloud]' % (str(msg)))
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def FixMailSSL():
|
||||||
|
for website in Websites.objects.all():
|
||||||
|
virtualHostUtilities.setupAutoDiscover(1, '/home/cyberpanel/templogs', website.domain, website.admin)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(description='CyberPanel Installer')
|
parser = argparse.ArgumentParser(description='CyberPanel Installer')
|
||||||
@@ -1381,6 +1386,9 @@ def main():
|
|||||||
IncScheduler.CalculateAndUpdateDiskUsage()
|
IncScheduler.CalculateAndUpdateDiskUsage()
|
||||||
IncScheduler.WPUpdates()
|
IncScheduler.WPUpdates()
|
||||||
|
|
||||||
|
if args.function == 'Weekly':
|
||||||
|
IncScheduler.FixMailSSL()
|
||||||
|
|
||||||
### Run incremental backups in sep thread
|
### Run incremental backups in sep thread
|
||||||
|
|
||||||
ib = IncScheduler('startBackup', {'freq': args.function})
|
ib = IncScheduler('startBackup', {'freq': args.function})
|
||||||
|
|||||||
Reference in New Issue
Block a user