CFG_FTP=$(whiptail --title"FTP Server"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Install and configure FTP SERVER?"$WT_HEIGHT$WT_WIDTH 4 "onlyFTP""Yes, only with FTP" OFF "onlyTLS""Yes, only with TLS" ON"FTPandTLS""Yes, with FTP and TLS" OFF "none""No, don't install it" OFF 3>&1 1>&2 2>&3)
CFG_FTP=$(whiptail --title"FTP Server"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Install and configure FTP SERVER?"$WT_HEIGHT$WT_WIDTH 4 "onlyTLS""Yes, only with TLS" ON "onlyFTP""Yes, only with FTP" OFF"FTPandTLS""Yes, with FTP and TLS" OFF "none""No, don't install it" OFF 3>&1 1>&2 2>&3)
done
done
echo-n-e"$IDENTATION_LVL_1${BBlack}Install and Configure FTP Server${NC}: ${green}$CFG_FTP${NC} "
echo-n-e"$IDENTATION_LVL_1${BBlack}Install and Configure FTP Server${NC}: ${green}$CFG_FTP${NC} "
echo
echo
while[[!"$CFG_MTA"=~ $RE]];do
while[[!"$CFG_MTA"=~ $RE]];do
CFG_MTA=$(whiptail --title"Mail Server"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Select mailserver type"$WT_HEIGHT$WT_WIDTH 3 "None""" OFF "Dovecot""(default)" ON "Courier""" OFF 3>&1 1>&2 2>&3)
CFG_MTA=$(whiptail --title"Mail Server"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Select mailserver type"$WT_HEIGHT$WT_WIDTH 3 "Dovecot""(default)" ON "Courier""" OFF "None""" OFF 3>&1 1>&2 2>&3)
done
done
CFG_MTA=${CFG_MTA,,}
CFG_MTA=${CFG_MTA,,}
...
@@ -61,7 +61,7 @@ AskQuestions() {
...
@@ -61,7 +61,7 @@ AskQuestions() {
else
else
CFG_SETUP_MAIL=true
CFG_SETUP_MAIL=true
while[[!"$CFG_WEBMAIL"=~ $RE]];do
while[[!"$CFG_WEBMAIL"=~ $RE]];do
CFG_WEBMAIL=$(whiptail --title"Webmail client"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Select which Web Mail client you want"$WT_HEIGHT$WT_WIDTH 6 "Roundcube""(default)" OFF "Roundcube-latest""latest available" ON"RainLoop""" OFF "SOGo""" OFF "Squirrelmail""" OFF "None""No Web Mail Client" OFF 3>&1 1>&2 2>&3)
CFG_WEBMAIL=$(whiptail --title"Webmail client"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Select which Web Mail client you want"$WT_HEIGHT$WT_WIDTH 6 "Roundcube-latest""latest available" ON "Roundcube""(default)" OFF"RainLoop""" OFF "SOGo""" OFF "Squirrelmail""" OFF "None""No Web Mail Client" OFF 3>&1 1>&2 2>&3)
if whiptail --title"Install phpMyAdmin"--backtitle"$WT_BACKTITLE"--yesno"Do you want to install phpMyAdmin?"$WT_HEIGHT$WT_WIDTH;then
CFG_PHPMYADMIN=$(whiptail --title"Install phpMyAdmin"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Do you want to install phpMyAdmin?"$WT_HEIGHT$WT_WIDTH 2 "Yes""(default)" ON "No""" OFF 3>&1 1>&2 2>&3)
CFG_PHPMYADMIN_VERSION=$(whiptail --title"phpMyAdmin Version"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"What version of phpMyAdmin do you want to install?"$WT_HEIGHT$WT_WIDTH 4 "Default""Current OS Version" OFF "Buster""From buster backports - newer" OFF "Bullseye""From bullseye backports - newer" OFF "Latest-stable""from phpMyAdmin.net" ON 3>&1 1>&2 2>&3)
CFG_PHPMYADMIN_VERSION=$(whiptail --title"phpMyAdmin Version"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"What version of phpMyAdmin do you want to install?"$WT_HEIGHT$WT_WIDTH 4 "Latest-stable""from phpMyAdmin.net" ON "Default""Current OS Version" OFF "Buster""From buster backports - newer" OFF "Bullseye""From bullseye backports - newer" OFF 3>&1 1>&2 2>&3)
# CFG_JOOMLA=$(whiptail --title "Install CMS" --backtitle "$WT_BACKTITLE" --nocancel --radiolist "Select the default CMS" 10 50 2 "joomla" "(default)" ON "drupal" "" OFF 3>&1 1>&2 2>&3)
# CFG_JOOMLA=$(whiptail --title "Install CMS" --backtitle "$WT_BACKTITLE" --nocancel --radiolist "Select the default CMS" 10 50 2 "joomla" "(default)" ON "drupal" "" OFF 3>&1 1>&2 2>&3)
#done
#done
if whiptail --title"Install GitLab Server"--backtitle"$WT_BACKTITLE"--yesno"Do you want to install GitLab Server?"$WT_HEIGHT$WT_WIDTH;then
while["x$CFG_GITLABINSTALL"=="x"];do
CFG_GITLABINSTALL="yes"
CFG_GITLABINSTALL=$(whiptail --title"Install Gitlab Server"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Do you want to install Gitlab Server?"$WT_HEIGHT$WT_WIDTH 2 "yes""(default)" ON "no""" OFF 3>&1 1>&2 2>&3)
if whiptail --title"Install Cloud Server"--backtitle"$WT_BACKTITLE"--yesno"Do you want to install a Cloud Server?"$WT_HEIGHT$WT_WIDTH;then
CFG_CLOUDINSTALL=$(whiptail --title"Install Cloud Server"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Do you want to install a Cloud Server?"$WT_HEIGHT$WT_WIDTH 2 "yes""(default)" ON "no""" OFF 3>&1 1>&2 2>&3)
CFG_CLOUDINSTALL="yes"
done
else
CFG_CLOUDINSTALL="no"
fi
if["$CFG_CLOUDINSTALL"=="yes"];then
if["$CFG_CLOUDINSTALL"=="yes"];then
while["x$CFG_CLOUDTYPE"=="x"];do
while["x$CFG_CLOUDTYPE"=="x"];do
...
@@ -262,11 +267,10 @@ AskQuestions() {
...
@@ -262,11 +267,10 @@ AskQuestions() {
if["$CFG_CLOUDTYPE"=="nextcloud"];then
if["$CFG_CLOUDTYPE"=="nextcloud"];then
while["x$CFG_CLOUDUPGRADE"=="x"];do
while["x$CFG_CLOUDUPGRADE"=="x"];do
CFG_CLOUDUPGRADE=$(whiptail --title"Install Or Upgrade Nextcloud Server"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Do you want to upgrade Owncloud to Nextcloud Server or Fresh install?"$WT_HEIGHT$WT_WIDTH 2 "yes""(Upgrade)" OFF "no""(Fresh install)" ON 3>&1 1>&2 2>&3)
CFG_CLOUDUPGRADE=$(whiptail --title"Install Or Upgrade Nextcloud Server"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Do you want to upgrade Owncloud to Nextcloud Server or Fresh install?"$WT_HEIGHT$WT_WIDTH 2 "no""(Fresh install)" ON "yes""(Upgrade)" OFF 3>&1 1>&2 2>&3)
done
done
fi
fi
if["$CFG_CLOUDTYPE"=="seafile"];then
if["$CFG_CLOUDTYPE"=="seafile"];then
while["x$CFG_SEAFILEVERSION"=="x"];do
while["x$CFG_SEAFILEVERSION"=="x"];do
CFG_SEAFILEVERSION=$(whiptail --title"Seafile Version"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Which Seafile version would you like to install?"$WT_HEIGHT$WT_WIDTH 2 "pro""Seafile Pro" OFF "community""Seafile Community Edition" ON 3>&1 1>&2 2>&3)
CFG_SEAFILEVERSION=$(whiptail --title"Seafile Version"--backtitle"$WT_BACKTITLE"--nocancel--radiolist"Which Seafile version would you like to install?"$WT_HEIGHT$WT_WIDTH 2 "pro""Seafile Pro" OFF "community""Seafile Community Edition" ON 3>&1 1>&2 2>&3)
TOTAL_MEMORY=$((TOTAL_PHYSICAL_MEM + TOTAL_SWAP))# Combine RAM and swap for total memory
TOTAL_MEMORY=$((TOTAL_PHYSICAL_MEM + TOTAL_SWAP))# Combine RAM and swap for total memory
if["$TOTAL_MEMORY"-lt 524288 ];then
if["$TOTAL_MEMORY"-lt 524288 ];then
echo-e" [ ${red}ERROR${NC}: This machine has $(($TOTAL_PHYSICAL_MEM/1024)) MiB RAM and $(($TOTAL_SWAP/1024)) MiB swap. ISPConfig requires at least 512 MiB (1 GiB recommended) of total memory. ]"
echo-e" [ ${red}ERROR${NC}: This machine has $(($TOTAL_PHYSICAL_MEM/1024)) MiB RAM and $(($TOTAL_SWAP/1024)) MiB swap. ISPConfig requires at least 512 MiB (1 GiB recommended) of total memory. ]"
exit 1
exit 1
fi
fi
echo-e" [ ${green}OK${NC}]"
echo-e"[${green}OK${NC}]"
# Check internet connectivity by pinging ISPConfig servers
# Check internet connectivity by pinging ISPConfig servers
echo-n-e"$IDENTATION_LVL_1 Checking internet connectivity..."
echo-n-e"$IDENTATION_LVL_1 Checking internet connectivity... "