#!/bin/bash
#Script-By : SATLINK ! 
txtred=$(tput bold ; tput setaf 1) # Vija-Kuqe
txtgreen=$(tput bold ; tput setaf 2) # Vija-Jeshile
txtyellow=$(tput bold ; tput setaf 3) # Vija-Verdhe
clear
echo ""
echo "${txtyellow} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtyellow} │    Preparando el sistema para instalar Xui.One    │ "
echo "${txtyellow} └───────────────────────────────────────────────────┘ "
sleep 3s
cd
echo "${txtred} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtred} │                 ¿Quieres continuar?               │ "
echo "${txtred} └───────────────────────────────────────────────────┘ "
select yn in "Yes" "No"; do
    case $yn in
        Yes ) echo "Elige Sí... Para instalar XUI.One"; break;;
        No ) exit;;
    esac
done
sleep 4s
apt-get install unzip
clear
cd /tmp
echo "${txtyellow} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtyellow} │             Descarga de archivos XUI.One          │ "
echo "${txtyellow} └───────────────────────────────────────────────────┘ "
wget https://menu.satlink.com.gt/xtream/XUI-ONE/1.5.5/install.zip
wget https://menu.satlink.com.gt/xtream/XUI-ONE/1.5.5/crack.zip
unzip install.zip
sleep 3s
unzip crack.zip
chmod +x install
echo "${txtyellow} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtyellow} │         Abriendo instalador oficial de XUI        │ "
echo "${txtyellow} └───────────────────────────────────────────────────┘ "
sleep 2s
./install
echo ""
echo "${txtred} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtred} │               Insertando Xui.One Crack            │ "
echo "${txtred} └───────────────────────────────────────────────────┘ "
chmod -R 777 xui-crack
cd xui-crack
chmod +x install.sh
./install.sh
echo "${txtyellow} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtyellow} │   Proceso finalizado. Exportando información...   │ "
echo "${txtyellow} └───────────────────────────────────────────────────┘ "
sleep 2s
systemctl enable xuione
echo "${txtred} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtred} │          Por favor tome las claves MySQL          │ "
echo "${txtred} └───────────────────────────────────────────────────┘ "
cd
cd /tmp && tail -n 4 credentials.txt
echo ""
echo ""
sleep 4s
echo "${txtred} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtred} │            Guardando información en /home         │ "
echo "${txtred} └───────────────────────────────────────────────────┘ "
chmod 777 /tmp/credentials.txt
chmod 777 /home
mv /tmp/credentials.txt /home/credentials_xui.txt
sleep 4s
echo "${txtred} ┌──SATLINK MENU INSTALL - https://t.me/Satlink502───┐ "
echo "${txtred} │             Información de estado de XUI          │ "
echo "${txtred} └───────────────────────────────────────────────────┘ "
cd /home/xui
./status



