Skip to content
Permalink
Browse files

move install/upgrade src to git stable

  • Loading branch information
usmannasir committed Nov 7, 2019
1 parent 9fd6c45 commit 84944f1f40bb9b40222666411e938d7e9134bd63
Showing with 8 additions and 4 deletions.
  1. +1 −1 baseTemplate/views.py
  2. +5 −2 install/install.py
  3. +1 −1 plogical/adminPass.py
  4. +1 −0 version.txt
@@ -112,7 +112,7 @@ def versionManagment(request):

vers = version.objects.get(pk=1)

getVersion = requests.get('https://cyberpanel.net/version.txt')
getVersion = requests.get('https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/version.txt')

latest = getVersion.json()

@@ -1082,10 +1082,13 @@ def download_install_CyberPanel(self, mysqlPassword, mysql):
'Move static content', 1, 1, os.EX_OSERR)

try:
import requests
getVersion = requests.get('https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/version.txt')
latest = getVersion.json()
path = "/usr/local/CyberCP/version.txt"
writeToFile = open(path, 'w')
writeToFile.writelines('1.9\n')
writeToFile.writelines('1')
writeToFile.writelines('%s\n' % (str(latest['version'])))
writeToFile.writelines(str(latest['build']))
writeToFile.close()
except:
pass
@@ -31,7 +31,7 @@ def main():
firstName="Cyber", lastName="Panel", acl=acl, token=token)
admin.save()

vers = version(currentVersion="1.9", build=1)
vers = version(currentVersion="1.9", build=2)
vers.save()

package = Package(admin=admin, packageName="Default", diskSpace=1000,
@@ -0,0 +1 @@
{"version":"1.9","build":2}

0 comments on commit 84944f1

Please sign in to comment.
You can’t perform that action at this time.