Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f25121d99 | |||
| dfcb09635d | |||
|
|
265870d3a4 | ||
|
|
8443dea6f4 | ||
|
|
908d50a63b | ||
|
|
798cf0e90b | ||
|
|
e1ab02a5e9 | ||
|
|
4856e6f7aa | ||
|
|
6e0fbcf6e7 | ||
|
|
da7e6ffba2 |
BIN
bin/client
BIN
bin/client
Binary file not shown.
BIN
bin/tig_idle
BIN
bin/tig_idle
Binary file not shown.
@ -45,7 +45,7 @@ cd "tig_pool_$branch" || exit 1
|
||||
screen -ls | grep pool_tig | awk '{print $1}' | xargs -I {} screen -S {} -X kill
|
||||
|
||||
# Télécharger et exécuter le script mis à jour
|
||||
script_url="https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/scripts/tig_pool_master.sh"
|
||||
script_url="https://git.088.im/coosld/client/raw/branch/main/scripts/tig_pool_master.sh"
|
||||
echo "Downloading script from: $script_url"
|
||||
|
||||
wget --no-cache "$script_url"
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
@ -125,42 +125,34 @@ cd $current_path
|
||||
python3 -m venv venv
|
||||
|
||||
cd $current_path
|
||||
./venv/bin/pip3 install -r tig-benchmarker/requirements.txt
|
||||
|
||||
# Create a directory client_xnico_pool and navigate to it
|
||||
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
|
||||
fi
|
||||
|
||||
|
||||
wget --no-cache 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
|
||||
fi
|
||||
|
||||
# Grant execution permissions to both files
|
||||
chmod +x client_tig_pool
|
||||
chmod +x bench
|
||||
chmod +x tig_idle
|
||||
chmod +x slave
|
||||
|
||||
cd $current_path
|
||||
@ -185,6 +177,11 @@ sed -i "s|@@path@@|$current_path/|g" pool_tig_launch_${id_slave}_${nom_slave}.sh
|
||||
|
||||
echo "Script completed successfully. Files have been downloaded, configured, and the path has been updated."
|
||||
|
||||
pkill -f slave_tig && pkill -f pool_tig*
|
||||
|
||||
screen -wipe >/dev/null 2>&1 || true
|
||||
|
||||
|
||||
# Start a new screen called pool_tig and execute the script pool_tig_launch_${id_slave}_${nom_slave}.sh
|
||||
screen -dmL -Logfile "$current_path/logs/pool_tig.log" -S pool_tig bash -c "cd \"$current_path\" && ./pool_tig_launch_${id_slave}_${nom_slave}.sh ; exec bash"
|
||||
|
||||
@ -194,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
|
||||
@ -212,8 +209,11 @@ echo ""
|
||||
echo -e "\e[32mTIG $branch Pool has been installed successfully!\e[0m"
|
||||
echo ""
|
||||
|
||||
echo "To follow the benchmarker, use the commands below:"
|
||||
echo "You need to wait about 10 min to start getting Works and start to mine"
|
||||
echo
|
||||
echo "To follow the benchmarker, use the commands below:"
|
||||
|
||||
|
||||
echo " 1. Follow pool:"
|
||||
echo " tail -f ~/tig_pool_main/logs/pool_tig.log"
|
||||
echo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user