allow to use redis hosting

This commit is contained in:
Usman Nasir 2020-03-02 10:55:29 +05:00
parent f6b571b91b
commit 39e5db80f0
1 changed files with 12 additions and 1 deletions

View File

@ -1105,6 +1105,12 @@ if [[ $VERSION == "ENT" ]] ; then
echo -e "\nThis may take a minute..."
echo -e "\nplease be patient...\n\n"
license_validation
echo -e "\nWould you like use Redis Mass Hosting?"
echo -e "Please type Yes or No (with capital \e[31mY\e[39m, default No):"
printf "%s"
read REDIS_HOSTING
SERIAL_NO="--ent ent --serial "
fi
@ -1125,7 +1131,12 @@ if [[ $debug == "1" ]] ; then
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
/usr/local/CyberPanel/bin/pip3 install --ignore-installed -r requirements.txt
rm -f requirements.txt
/usr/local/CyberPanel/bin/python install.py $SERVER_IP $SERIAL_NO $LICENSE_KEY --postfix $POSTFIX_VARIABLE --powerdns $POWERDNS_VARIABLE --ftp $PUREFTPD_VARIABLE --redis enable
if [[ $REDIS_HOSTING == "Yes" ]] ; then
/usr/local/CyberPanel/bin/python install.py $SERVER_IP $SERIAL_NO $LICENSE_KEY --postfix $POSTFIX_VARIABLE --powerdns $POWERDNS_VARIABLE --ftp $PUREFTPD_VARIABLE --redis enable
else
/usr/local/CyberPanel/bin/python install.py $SERVER_IP $SERIAL_NO $LICENSE_KEY --postfix $POSTFIX_VARIABLE --powerdns $POWERDNS_VARIABLE --ftp $PUREFTPD_VARIABLE
fi
if grep "CyberPanel installation successfully completed" /var/log/installLogs.txt > /dev/null; then
echo -e "\nCyberPanel installation sucessfully completed..."