mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
delete site from gdrive backups
This commit is contained in:
@@ -2612,6 +2612,15 @@ class WebsiteManager:
|
|||||||
execPath = execPath + " deleteVirtualHostConfigurations --virtualHostName " + websiteName
|
execPath = execPath + " deleteVirtualHostConfigurations --virtualHostName " + websiteName
|
||||||
ProcessUtilities.popenExecutioner(execPath)
|
ProcessUtilities.popenExecutioner(execPath)
|
||||||
|
|
||||||
|
### delete site from dgdrive backups
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
|
from websiteFunctions.models import GDriveSites
|
||||||
|
GDriveSites.objects.filter(domain=websiteName).delete()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
data_ret = {'status': 1, 'websiteDeleteStatus': 1, 'error_message': "None"}
|
data_ret = {'status': 1, 'websiteDeleteStatus': 1, 'error_message': "None"}
|
||||||
json_data = json.dumps(data_ret)
|
json_data = json.dumps(data_ret)
|
||||||
return HttpResponse(json_data)
|
return HttpResponse(json_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user