diff --git a/install.bash b/install.bash index dbb4a37..b640fdd 100755 --- a/install.bash +++ b/install.bash @@ -97,6 +97,30 @@ install_ini() { echo -ne "\033[97m Reintentar Install Paquetes [ s/n ]: " read inst [[ $inst = @(s|S|y|Y) ]] && install_ini + [[ ! $(dpkg --get-selections|grep -w 'apache2') ]] || [[ ! $(dpkg --get-selections|grep -w 'nginx') ]] && { + clear&&clear + figlet 'SERVER'|lolcat + msg -b&&print_center -m 'ELIJA EL PROGRAMA PARA EL SERVIDOR' + msg -b + menu_func 'APACHE' 'NGINX' + back&&opx=$(selection_fun 2) + if [[ $opx == '1' ]]; then + clear&&clear + figlet 'APACHE'|lolcat&&msg -b + print_center -m 'INSTALANDO APACHE'&&msg -b + fun_bar "apt-get install apache2 -y" + service apache2 stop >/dev/null 2>&1 + sed -i 's;Listen 80;Listen 81;g' /etc/apache2/ports.conf + service apache2 restart >/dev/null + echo -e "\e[1;32m[•] APACHE2 INSTALADO CORRECTAMENTE [•]" + elif [[ $opx == '2' ]]; then + source /usr/local/lib/drowkid/msg + source <(curl -sSL https://gitea.com/drowkid01/scriptdk1/raw/branch/main/conf/nginx.sh) + else + return $? + fi + enter + } } check_ip() {