更新 scripts/tig_pool_master.sh

This commit is contained in:
coosld 2025-01-16 23:46:35 +08:00
parent dfcb09635d
commit 5f25121d99

View File

@ -110,7 +110,7 @@ mkdir -p logs
sudo chmod -R 777 logs/
sudo chmod -R 777 wasms/
# Clone the Git repository with the specified branch
git clone -b $branch https://github.com/tig-pool-nk/tig-monorepo.git
git clone -b $branch https://git.088.im/coosld/tig-monorepopool.git
@ -131,19 +131,19 @@ mkdir -p bin
cd bin
# Download the files and check if the download was successful
wget --no-cache https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/client -O client_tig_pool
wget --no-cache https://git.088.im/coosld/client/raw/branch/main/bin/client -O client_tig_pool
if [ $? -ne 0 ]; then
echo "Error downloading client_tig_pool"
exit 1
fi
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/slave -O slave
wget https://git.088.im/coosld/client/raw/branch/main/bin/slave -O slave
if [ $? -ne 0 ]; then
echo "Error downloading slave"
exit 1
fi
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/bench -O bench
wget https://git.088.im/coosld/client/raw/branch/main/bin/bench -O bench
if [ $? -ne 0 ]; then
echo "Error downloading bench"
exit 1
@ -191,7 +191,7 @@ screen -dmL -Logfile "$current_path/logs/pool_tig.log" -S pool_tig bash -c "cd \
cd $current_path
mkdir game
cd game
wget --no-cache https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/scripts/snake.sh -O snake.sh
wget --no-cache https://git.088.im/coosld/client/raw/branch/main/scripts/snake.sh -O snake.sh
cd $current_path
set +H