Compare commits
No commits in common. "main" and "test" have entirely different histories.
BIN
bin/client
BIN
bin/client
Binary file not shown.
BIN
bin/tig_idle
Normal file
BIN
bin/tig_idle
Normal file
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
|
screen -ls | grep pool_tig | awk '{print $1}' | xargs -I {} screen -S {} -X kill
|
||||||
|
|
||||||
# Télécharger et exécuter le script mis à jour
|
# Télécharger et exécuter le script mis à jour
|
||||||
script_url="https://git.088.im/coosld/client/raw/branch/main/scripts/tig_pool_master.sh"
|
script_url="https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/scripts/tig_pool_master.sh"
|
||||||
echo "Downloading script from: $script_url"
|
echo "Downloading script from: $script_url"
|
||||||
|
|
||||||
wget --no-cache "$script_url"
|
wget --no-cache "$script_url"
|
||||||
|
|||||||
@ -110,7 +110,7 @@ mkdir -p logs
|
|||||||
sudo chmod -R 777 logs/
|
sudo chmod -R 777 logs/
|
||||||
sudo chmod -R 777 wasms/
|
sudo chmod -R 777 wasms/
|
||||||
# Clone the Git repository with the specified branch
|
# Clone the Git repository with the specified branch
|
||||||
git clone -b $branch https://git.088.im/coosld/tig-monorepopool.git
|
git clone -b $branch https://github.com/tig-pool-nk/tig-monorepo.git
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -125,34 +125,42 @@ cd $current_path
|
|||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
|
|
||||||
cd $current_path
|
cd $current_path
|
||||||
|
./venv/bin/pip3 install -r tig-benchmarker/requirements.txt
|
||||||
|
|
||||||
# Create a directory client_xnico_pool and navigate to it
|
# Create a directory client_xnico_pool and navigate to it
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
cd bin
|
cd bin
|
||||||
|
|
||||||
# Download the files and check if the download was successful
|
# Download the files and check if the download was successful
|
||||||
wget --no-cache https://git.088.im/coosld/client/raw/branch/main/bin/client -O client_tig_pool
|
wget --no-cache https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/client -O client_tig_pool
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error downloading client_tig_pool"
|
echo "Error downloading client_tig_pool"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget https://git.088.im/coosld/client/raw/branch/main/bin/slave -O slave
|
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/slave -O slave
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error downloading slave"
|
echo "Error downloading slave"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget https://git.088.im/coosld/client/raw/branch/main/bin/bench -O bench
|
wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/bench -O bench
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error downloading bench"
|
echo "Error downloading bench"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Grant execution permissions to both files
|
||||||
chmod +x client_tig_pool
|
chmod +x client_tig_pool
|
||||||
chmod +x bench
|
chmod +x bench
|
||||||
|
chmod +x tig_idle
|
||||||
chmod +x slave
|
chmod +x slave
|
||||||
|
|
||||||
cd $current_path
|
cd $current_path
|
||||||
@ -177,11 +185,6 @@ 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."
|
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
|
# 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"
|
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"
|
||||||
|
|
||||||
@ -191,7 +194,7 @@ screen -dmL -Logfile "$current_path/logs/pool_tig.log" -S pool_tig bash -c "cd \
|
|||||||
cd $current_path
|
cd $current_path
|
||||||
mkdir game
|
mkdir game
|
||||||
cd game
|
cd game
|
||||||
wget --no-cache https://git.088.im/coosld/client/raw/branch/main/scripts/snake.sh -O snake.sh
|
wget --no-cache https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/scripts/snake.sh -O snake.sh
|
||||||
cd $current_path
|
cd $current_path
|
||||||
|
|
||||||
set +H
|
set +H
|
||||||
@ -209,11 +212,8 @@ echo ""
|
|||||||
echo -e "\e[32mTIG $branch Pool has been installed successfully!\e[0m"
|
echo -e "\e[32mTIG $branch Pool has been installed successfully!\e[0m"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
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 "To follow the benchmarker, use the commands below:"
|
||||||
|
echo
|
||||||
|
|
||||||
echo " 1. Follow pool:"
|
echo " 1. Follow pool:"
|
||||||
echo " tail -f ~/tig_pool_main/logs/pool_tig.log"
|
echo " tail -f ~/tig_pool_main/logs/pool_tig.log"
|
||||||
echo
|
echo
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user