mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix: full path for add user
This commit is contained in:
@@ -283,12 +283,13 @@ password=%s""" % (rootdbpassword, rootdbpassword)
|
|||||||
## Cleanup of deleted domains
|
## Cleanup of deleted domains
|
||||||
|
|
||||||
from plogical.acl import ACLManager
|
from plogical.acl import ACLManager
|
||||||
|
import validators
|
||||||
currentACL = ACLManager.loadedACL(1)
|
currentACL = ACLManager.loadedACL(1)
|
||||||
allSite = ACLManager.findAllSites(currentACL, 1)
|
allSite = ACLManager.findAllSites(currentACL, 1)
|
||||||
|
|
||||||
|
for website in os.listdir('/home'):
|
||||||
|
|
||||||
for website in os.listdir(ClusterManager.vhostConfPath):
|
if validators.domain(website):
|
||||||
|
|
||||||
if website not in allSite:
|
if website not in allSite:
|
||||||
self.PostStatus(
|
self.PostStatus(
|
||||||
'Domain %s not found in Master, deleting data directories and configurations.' % (website))
|
'Domain %s not found in Master, deleting data directories and configurations.' % (website))
|
||||||
@@ -299,7 +300,6 @@ password=%s""" % (rootdbpassword, rootdbpassword)
|
|||||||
command = 'rm -rf /%s/%s' % (ClusterManager.vhostConfPath, website)
|
command = 'rm -rf /%s/%s' % (ClusterManager.vhostConfPath, website)
|
||||||
ProcessUtilities.normalExecutioner(command)
|
ProcessUtilities.normalExecutioner(command)
|
||||||
|
|
||||||
|
|
||||||
self.PostStatus('All domains synced.')
|
self.PostStatus('All domains synced.')
|
||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
|
|||||||
Reference in New Issue
Block a user