mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-24 00:09:03 +01:00
This commit is contained in:
@@ -384,6 +384,11 @@ class vhost:
|
||||
numberOfSites = Websites.objects.count() + ChildDomains.objects.count()
|
||||
vhost.deleteCoreConf(items.domain, numberOfSites)
|
||||
|
||||
### Delete ACME Folder
|
||||
|
||||
if os.path.exists('/root/.acme.sh/%s' % (items.domain)):
|
||||
shutil.rmtree('/root/.acme.sh/%s' % (items.domain))
|
||||
|
||||
for items in databases:
|
||||
mysqlUtilities.deleteDatabase(items.dbName, items.dbUser)
|
||||
|
||||
@@ -422,6 +427,12 @@ class vhost:
|
||||
if os.path.exists(gitPath):
|
||||
shutil.rmtree(gitPath)
|
||||
|
||||
|
||||
### Delete Acme folder
|
||||
|
||||
if os.path.exists('/root/.acme.sh/%s' % (virtualHostName)):
|
||||
shutil.rmtree('/root/.acme.sh/%s' % (virtualHostName))
|
||||
|
||||
except BaseException as msg:
|
||||
logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [Not able to remove virtual host configuration from main configuration file.]")
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user