Skip to content
Permalink
Browse files
bug fix: reseller to modify dns zone
  • Loading branch information
usmannasir committed Feb 13, 2020
1 parent 659acf2 commit 9831ca2ac51efb752d91f764ede4c984903bc029
Showing 2 changed files with 4 additions and 4 deletions.
@@ -526,7 +526,7 @@ def checkOwnership(domain, admin, currentACL):

@staticmethod
def checkOwnershipZone(domain, admin, currentACL):
domain = Domains.objects.get(name=domain)
domain = Websites.objects.get(domain=domain)

if currentACL['admin'] == 1:
return 1
@@ -1480,7 +1480,7 @@ def downloadAndUpgrade(versionNumbring, branch):
pass

@staticmethod
def installLSCPD():
def installLSCPD(branch):
try:

Upgrade.stdOut("Starting LSCPD installation..")
@@ -1499,7 +1499,7 @@ def installLSCPD():
if os.path.exists(lscpdPath):
os.remove(lscpdPath)

command = 'wget https://raw.githubusercontent.com/usmannasir/cyberpanel/v1.9.4/lscpd-0.2.4 -P /usr/local/lscp/bin/'
command = 'wget https://raw.githubusercontent.com/usmannasir/cyberpanel/%s/lscpd-0.2.4 -P /usr/local/lscp/bin/' % (branch)
Upgrade.executioner(command, command, 0)

command = 'rm -f /usr/local/lscp/bin/lscpd'
@@ -2169,7 +2169,7 @@ def upgrade(branch):
Upgrade.installPHP73()
Upgrade.setupCLI()
Upgrade.someDirectories()
Upgrade.installLSCPD()
Upgrade.installLSCPD(branch)
Upgrade.GeneralMigrations()
#Upgrade.p3()

0 comments on commit 9831ca2

Please sign in to comment.