Skip to content

Commit

Permalink
move install/upgrade src to git stable
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Nov 7, 2019
1 parent 9fd6c45 commit 84944f1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion baseTemplate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
7 changes: 5 additions & 2 deletions install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plogical/adminPass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"1.9","build":2}

0 comments on commit 84944f1

Please sign in to comment.