精简密码库代码,增加v2bx,xboard安装

This commit is contained in:
lsy 2024-09-22 20:42:23 +08:00
parent 17f91117e1
commit d21e8227ff
3 changed files with 23 additions and 3 deletions

View File

@ -25,7 +25,7 @@ services:
EOF
if [[ -z $password ]];then
awk '!/ADMIN_TOKEN=/' docker-compose.yml > tmpfile && mv tmpfile docker-compose.yml
sed -i '/.*ADMIN_TOKEN=.*/d' "docker-compose.yml"
fi
mkdir templates
@ -36,8 +36,8 @@ rm main.zip
cd vaultwarden-lang-zhcn-main
declare admin=$( ls | grep "admin" | tac | head -n 1 )
declare email=$( ls | grep "email" | tac | head -n 1 )
mv "$admin" admin && cp -r admin ..
mv "$email" email && cp -r email ..
mv "$admin" "../admin"
mv "$email" "../email"
cd ..
rm -rf vaultwarden-lang-zhcn-main
sudo docker compose up -d || echo "安装失败" && exit

19
Config/Docker/Xboard.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
declare path=$1
declare port=$2
cd $path
declare namediv=$(basename $path)
cd ..
rm -rf "$namediv"
git clone -b docker-compose --depth 1 https://github.com/cedar2025/Xboard
mv Xboard "$namediv"
cd "$path"
docker compose run -it --rm xboard php artisan xboard:install
docker compose up -d > /dev/null
sleep 5
echo "网站端口默认7001记得防火墙放行"

View File

@ -7,6 +7,7 @@ declarec vpn_pick
vpn_array["v2ray"]='bash <(curl -s -L https://git.io/v2ray.sh)'
vpn_array["v2ray-agent"]='wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh'
vpn_array["x-ui"]='bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)'
vpn_array["V2bX"]='wget -N https://raw.githubusercontent.com/wyx2685/V2bX-script/master/install.sh && bash install.sh'
for i in "${!vpn_array[@]}";do
vpn_index[${vpn_number}]=${i}