精简密码库代码,增加v2bx,xboard安装
This commit is contained in:
parent
17f91117e1
commit
d21e8227ff
@ -25,7 +25,7 @@ services:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [[ -z $password ]];then
|
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
|
fi
|
||||||
|
|
||||||
mkdir templates
|
mkdir templates
|
||||||
@ -36,8 +36,8 @@ rm main.zip
|
|||||||
cd vaultwarden-lang-zhcn-main
|
cd vaultwarden-lang-zhcn-main
|
||||||
declare admin=$( ls | grep "admin" | tac | head -n 1 )
|
declare admin=$( ls | grep "admin" | tac | head -n 1 )
|
||||||
declare email=$( ls | grep "email" | tac | head -n 1 )
|
declare email=$( ls | grep "email" | tac | head -n 1 )
|
||||||
mv "$admin" admin && cp -r admin ..
|
mv "$admin" "../admin"
|
||||||
mv "$email" email && cp -r email ..
|
mv "$email" "../email"
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf vaultwarden-lang-zhcn-main
|
rm -rf vaultwarden-lang-zhcn-main
|
||||||
sudo docker compose up -d || echo "安装失败" && exit
|
sudo docker compose up -d || echo "安装失败" && exit
|
||||||
|
19
Config/Docker/Xboard.sh
Normal file
19
Config/Docker/Xboard.sh
Normal 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,记得防火墙放行"
|
@ -7,6 +7,7 @@ declarec vpn_pick
|
|||||||
vpn_array["v2ray"]='bash <(curl -s -L https://git.io/v2ray.sh)'
|
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["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["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
|
for i in "${!vpn_array[@]}";do
|
||||||
vpn_index[${vpn_number}]=${i}
|
vpn_index[${vpn_number}]=${i}
|
||||||
|
Loading…
Reference in New Issue
Block a user