Update x-ui.sh

This commit is contained in:
vaxilu
2021-08-25 16:59:11 +08:00
committed by GitHub
parent 56c30d4d0c
commit 5d118afb07

10
x-ui.sh
View File

@@ -82,7 +82,7 @@ before_show_menu() {
}
install() {
bash <(curl -Ls https://blog.sprov.xyz/x-ui.sh)
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
if [[ $? == 0 ]]; then
if [[ $# == 0 ]]; then
start
@@ -101,7 +101,7 @@ update() {
fi
return 0
fi
bash <(curl -Ls https://raw.githubusercontent.com/sprov065/x-ui/master/install.sh)
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
if [[ $? == 0 ]]; then
echo -e "${green}更新完成,已自动重启面板${plain}"
exit 0
@@ -127,9 +127,6 @@ uninstall() {
echo ""
echo -e "卸载成功,如果你想删除此脚本,则退出脚本后运行 ${green}rm /usr/bin/x-ui -f${plain} 进行删除"
echo ""
echo -e "Telegram 群组: ${green}https://t.me/sprov_blog${plain}"
echo -e "Github issues: ${green}https://github.com/sprov065/x-ui/issues${plain}"
echo -e "博客: ${green}https://blog.sprov.xyz/x-ui${plain}"
if [[ $# == 0 ]]; then
before_show_menu
@@ -284,7 +281,7 @@ install_bbr() {
}
update_shell() {
wget -O /usr/bin/x-ui -N --no-check-certificate https://github.com/sprov065/x-ui/raw/master/x-ui.sh
wget -O /usr/bin/x-ui -N --no-check-certificate https://github.com/vaxilu/x-ui/raw/master/x-ui.sh
if [[ $? != 0 ]]; then
echo ""
echo -e "${red}下载脚本失败,请检查本机能否连接 Github${plain}"
@@ -410,7 +407,6 @@ show_usage() {
show_menu() {
echo -e "
${green}x-ui 面板管理脚本${plain}
--- https://blog.sprov.xyz/x-ui ---
${green}0.${plain} 退出脚本
————————————————
${green}1.${plain} 安装 x-ui