From c0fbfdbe7c827957174d9909ca3ff15de709db81 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 13 Nov 2019 00:14:29 +0500 Subject: [PATCH] get proper version during upgrade --- install/install.py | 2 -- plogical/upgrade.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/install/install.py b/install/install.py index 08138a487..435c075bd 100755 --- a/install/install.py +++ b/install/install.py @@ -279,8 +279,6 @@ class preFlightsChecks: ## - count = 0 - if self.distro == ubuntu: # self.stdOut("Fix sudoers") # try: diff --git a/plogical/upgrade.py b/plogical/upgrade.py index b8fea00a5..ea55d5dfd 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -494,7 +494,7 @@ class Upgrade: def upgradeVersion(): try: 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() vers.currentVersion = latest['version'] vers.build = latest['build']