feature: add dynamic install

This commit is contained in:
Usman Nasir
2020-01-29 12:32:55 +05:00
parent b6b80e99cf
commit 13fd534495
2 changed files with 5 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ REDIS="ON"
TOTAL_RAM=$(free -m | awk '/Mem\:/ { print $2 }')
CENTOS_8="False"
WATCHDOG="OFF"
BRANCH_NAME="stable"
BRANCH_NAME=${TEMP:12:3}.${TEMP:25:1}
check_return() {
#check previous command result , 0 = ok , non-0 = something wrong.

View File

@@ -5,7 +5,10 @@ export LC_CTYPE=en_US.UTF-8
SUDO_TEST=$(set)
SERVER_OS='Undefined'
OUTPUT=$(cat /etc/*release)
BRANCH_NAME="v1.9.4"
TEMP=$(curl --silent https://cyberpanel.net/version.txt)
CP_VER1=${TEMP:12:3}
CP_VER2=${TEMP:25:1}
BRANCH_NAME=${TEMP:12:3}.${TEMP:25:1}
install_utility() {
if [[ ! -f /usr/bin/cyberpanel_utility ]] ; then