mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-16 10:16:12 +01:00
check lscpd
This commit is contained in:
@@ -1489,7 +1489,7 @@ CSRF_COOKIE_SECURE = True
|
|||||||
if os.path.exists(lscpdPath):
|
if os.path.exists(lscpdPath):
|
||||||
os.remove(lscpdPath)
|
os.remove(lscpdPath)
|
||||||
|
|
||||||
command = 'wget https://cyberpanel.sh/lscpd -P /usr/local/lscp/bin/'
|
command = 'wget https://cyberpanel.sh/lscpd-0.2.3 -P /usr/local/lscp/bin/lscpd'
|
||||||
Upgrade.executioner(command, 'LSCPD Download.', 0)
|
Upgrade.executioner(command, 'LSCPD Download.', 0)
|
||||||
|
|
||||||
command = 'chmod 755 %s' % (lscpdPath)
|
command = 'chmod 755 %s' % (lscpdPath)
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
SERVER_OS='Undefined'
|
SERVER_OS='Undefined'
|
||||||
OUTPUT=$(cat /etc/*release)
|
OUTPUT=$(cat /etc/*release)
|
||||||
|
BRANCH_NAME=$1
|
||||||
|
|
||||||
echo -e "\nChecking OS..."
|
echo -e "\nChecking OS..."
|
||||||
OUTPUT=$(cat /etc/*release)
|
OUTPUT=$(cat /etc/*release)
|
||||||
@@ -57,7 +58,7 @@ fi
|
|||||||
rm -rf /usr/local/CyberPanel
|
rm -rf /usr/local/CyberPanel
|
||||||
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
|
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
|
||||||
rm -rf requirments.txt
|
rm -rf requirments.txt
|
||||||
wget https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/requirments.txt
|
wget https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
|
||||||
. /usr/local/CyberPanel/bin/activate
|
. /usr/local/CyberPanel/bin/activate
|
||||||
|
|
||||||
if [ $SERVER_OS = "Ubuntu" ] ; then
|
if [ $SERVER_OS = "Ubuntu" ] ; then
|
||||||
@@ -70,13 +71,13 @@ fi
|
|||||||
|
|
||||||
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
|
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
|
||||||
rm -rf upgrade.py
|
rm -rf upgrade.py
|
||||||
wget https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/plogical/upgrade.py
|
wget https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/plogical/upgrade.py
|
||||||
/usr/local/CyberPanel/bin/python upgrade.py stable
|
/usr/local/CyberPanel/bin/python upgrade.py $BRANCH_NAME
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
||||||
virtualenv -p /usr/bin/python3 /usr/local/CyberCP
|
virtualenv -p /usr/bin/python3 /usr/local/CyberCP
|
||||||
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/requirments.txt
|
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
|
||||||
|
|
||||||
if [ $SERVER_OS = "Ubuntu" ] ; then
|
if [ $SERVER_OS = "Ubuntu" ] ; then
|
||||||
. /usr/local/CyberCP/bin/activate
|
. /usr/local/CyberCP/bin/activate
|
||||||
|
|||||||
Reference in New Issue
Block a user