mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
add git manager for child domains
This commit is contained in:
@@ -109,8 +109,18 @@ class IncScheduler():
|
||||
finalPath = '/home/vmail/%s' % (website)
|
||||
finalPathConf = '%s/%s' % (finalPathInside, file)
|
||||
else:
|
||||
finalPath = '/var/lib/mysql/%s' % (file)
|
||||
finalPathConf = '%s/%s' % (finalPathInside, file)
|
||||
|
||||
sqlCheck = 1
|
||||
|
||||
for childs in web.childdomains_set.all():
|
||||
if childs.path.find(file) > -1:
|
||||
finalPath = childs.path
|
||||
finalPathConf = '%s/%s' % (finalPathInside, file)
|
||||
sqlCheck = 0
|
||||
|
||||
if sqlCheck:
|
||||
finalPath = '/var/lib/mysql/%s' % (file)
|
||||
finalPathConf = '%s/%s' % (finalPathInside, file)
|
||||
|
||||
gitConf = json.loads(open(finalPathConf, 'r').read())
|
||||
data = {}
|
||||
|
||||
Reference in New Issue
Block a user