This commit is contained in:
drowkid01 2025-05-28 06:00:08 -06:00
parent 28a52c6f7a
commit 941026e382

View File

@ -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() {