mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
bug fix: send notifications for failed backups
This commit is contained in:
@@ -837,13 +837,13 @@ Automatic backup failed for %s on %s.
|
|||||||
startCheck = 0
|
startCheck = 0
|
||||||
for directory in directories:
|
for directory in directories:
|
||||||
if directory.find(site.domain):
|
if directory.find(site.domain):
|
||||||
|
print(f'site in backup, no need to notify {site.domain}')
|
||||||
startCheck = 1
|
startCheck = 1
|
||||||
break
|
break
|
||||||
|
|
||||||
if startCheck:
|
if startCheck:
|
||||||
'send notification that backup failed'
|
'send notification that backup failed'
|
||||||
import requests
|
import requests
|
||||||
import json
|
|
||||||
|
|
||||||
# Define the URL of the endpoint
|
# Define the URL of the endpoint
|
||||||
url = 'http://platform.cyberpersons.com/Billing/BackupFailedNotify' # Replace with your actual endpoint URL
|
url = 'http://platform.cyberpersons.com/Billing/BackupFailedNotify' # Replace with your actual endpoint URL
|
||||||
|
|||||||
Reference in New Issue
Block a user