fic
This commit is contained in:
parent
d6427f3090
commit
3fd74f1548
@ -90,7 +90,7 @@ echo "Login: $login_discord"
|
||||
echo "Private Key: $private_key"
|
||||
echo "URL Server: $URL_SERVER"
|
||||
echo "Current path: $current_path"
|
||||
echo "Current branch: $b"
|
||||
echo "Current branch: $branch"
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y python3 python3-venv python3-dev
|
||||
@ -105,7 +105,7 @@ sudo apt install -y libssl-dev
|
||||
mkdir -p wasms
|
||||
sudo chmod -R 777 wasms/
|
||||
# Clone the Git repository with the specified branch
|
||||
git clone -b $b https://github.com/tig-pool-nk/tig-monorepo.git
|
||||
git clone -b $branch https://github.com/tig-pool-nk/tig-monorepo.git
|
||||
|
||||
|
||||
|
||||
@ -121,14 +121,14 @@ python3 -m venv venv
|
||||
|
||||
mkdir -p tig-benchmarker
|
||||
cd tig-benchmarker
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$b/tig-benchmarker/slave.py -O slave.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$b/tig-benchmarker/requirements.txt -O requirements.txt
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/tig-benchmarker/slave.py -O slave.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/tig-benchmarker/requirements.txt -O requirements.txt
|
||||
mkdir -p common
|
||||
cd common
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$b/tig-benchmarker/common/__init__.py -O __init__.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$b/tig-benchmarker/common/merkle_tree.py -O merkle_tree.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$b/tig-benchmarker/common/structs.py -O structs.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$b/tig-benchmarker/common/utils.py -O utils.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$branch/tig-benchmarker/common/__init__.py -O __init__.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$branch/tig-benchmarker/common/merkle_tree.py -O merkle_tree.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$branch/tig-benchmarker/common/structs.py -O structs.py
|
||||
wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/tig-benchmarker/common/utils.py -O utils.py
|
||||
|
||||
|
||||
|
||||
@ -141,20 +141,20 @@ mkdir -p bin
|
||||
cd bin
|
||||
|
||||
# Download the files and check if the download was successful
|
||||
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$b/bin/client -O client_tig_pool
|
||||
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/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/$b/bin/bench -O bench
|
||||
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/bench -O bench
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error downloading bench"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$b/bin/tig_idle -O tig_idle
|
||||
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/tig_idle -O tig_idle
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error downloading tig_idle"
|
||||
exit 1
|
||||
@ -211,7 +211,7 @@ echo " ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═
|
||||
echo -e "\e[0m"
|
||||
|
||||
echo ""
|
||||
echo -e "\e[32mTIG $b Pool has been installed successfully!\e[0m"
|
||||
echo -e "\e[32mTIG $branch Pool has been installed successfully!\e[0m"
|
||||
echo ""
|
||||
|
||||
echo "To follow the benchmarker, use the commands below:"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user