Update site.py

This commit is contained in:
dami 2026-06-28 23:10:34 +08:00
parent d7d08f2f12
commit c554c19a12
1 changed files with 3 additions and 3 deletions

View File

@ -2189,12 +2189,12 @@ location ^~ {from} {\n\
if status:
return mw.returnData(False, '使用中,先关闭再删除')
if os.path.exists(path):
mw.execShell('rm -rf ' + path)
ssl_acme_dir = mw.getAcmeDomainDir(site_name)
if os.path.exists(ssl_acme_dir):
mw.execShell('rm -rf ' + ssl_acme_dir)
if os.path.exists(path):
mw.execShell('rm -rf ' + path)
return mw.returnData(True, '删除成功')
elif ssl_type == 'lets':
ssl_lets_dir = self.sslLetsDir + '/' + site_name