echo -e "\e[1;34m_________________________________\e[0m"
echo -e "\e[1;34m_________________________________\e[0m"
echo -e "\e[1;34m本脚本由SFS油条制作\e[0m"
echo -e "\e[1;34mQQ:3213631396\e[0m"
echo -e "\e[1;34mQQ群:188056055\e[0m"
echo _______________________________________________
echo 以后请使用alist server启动
echo 安装途中请输入y回车
sleep 1s
echo ①切换清华源yes/no
read
sleep 1s
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable main@' $PREFIX/etc/apt/sources.list
echo ②更新资源
apt update 
apt upgrade
echo 更新完成,正在安装。
pkg install alist
echo _______________________________________________
echo ③开始配置
sleep 0.5s
echo 切换成功
sleep 0.5s
echo -e "\e[1;32m_______________\e[0m"
echo 用户名为:admin
echo -e "\e[1;33m_______________\e[0m"
sleep 1s
echo 请设置密码
echo 密码 
read mm
echo -e "\e[1;34m____________\e[0m"
sleep 0.5s
alist admin set $mm
echo -e "\e[1;34m_________________________________\e[0m"
echo 配置成功，正在启动Alist
echo 以后请使用alist server启动
echo -e "\e[1;33m输入ctrl+c停止\e[0m"
echo -e "\e[1;31m_________________________________\e[0m"
echo -e "\e[1;31m_________________________________\e[0m"
echo -e "\e[1;33m浏览器打开0.0.0.0:5244\e[0m"
echo 用户名为:admin
echo 密码为$mm
sleep 3s
echo -e "\e[1;31m_________________________________\e[0m"
echo -e "\e[1;31m_________________________________\e[0m"
sleep 1s
alist server
