From 39e5db80f0aa4e3dd4a37438cf0ed823820eea2d Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Mon, 2 Mar 2020 10:55:29 +0500 Subject: [PATCH] allow to use redis hosting --- cyberpanel.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 764996e45..726d6bc91 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -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..."