linuxtool/Config/Docker/Software/Xboard.sh
2024-09-26 09:48:31 +08:00

23 lines
421 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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
if [[ "$namediv" != Xboard ]];then
mv Xboard "$namediv"
fi
cd "$path"
docker compose run -it --rm xboard php artisan xboard:install
docker compose up -d > /dev/null
sleep 5
echo "网站端口默认7001记得防火墙放行"