mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
Merge branch 'v2.3.2-dev' of https://github.com/usmannasir/cyberpanel into v2.3.2-dev
This commit is contained in:
@@ -659,20 +659,27 @@ class WebsiteManager:
|
||||
wpsite = WPSites.objects.get(pk=WPManagerID)
|
||||
StagingObj = WPSites.objects.get(pk=statgingID)
|
||||
|
||||
###
|
||||
|
||||
if ACLManager.checkOwnership(wpsite.owner.domain, admin, currentACL) == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadError()
|
||||
|
||||
if ACLManager.checkOwnership(StagingObj.owner.domain, admin, currentACL) == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadError()
|
||||
|
||||
###
|
||||
|
||||
extraArgs = {}
|
||||
extraArgs['adminID'] = admin.pk
|
||||
extraArgs['StagingDomain'] = StagingObj.FinalURL
|
||||
extraArgs['StagingName'] = StagingObj.title
|
||||
extraArgs['statgingID'] = statgingID
|
||||
extraArgs['WPid'] = WPManagerID
|
||||
extraArgs['tempStatusPath'] = "/home/cyberpanel/" + str(randint(1000, 9999))
|
||||
|
||||
|
||||
background = ApplicationInstaller('CreateStagingNow', extraArgs)
|
||||
background = ApplicationInstaller('DeploytoProduction', extraArgs)
|
||||
background.start()
|
||||
|
||||
time.sleep(2)
|
||||
|
||||
Reference in New Issue
Block a user