19 lines
379 B
Bash
19 lines
379 B
Bash
#!/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,记得防火墙放行" |