This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update=2023.12.29-release+689 | |
container=$(docker ps -a |grep xahau|cut -d " " -f 1) | |
build=$(docker exec -it $container /opt/xahaud/bin/xahaud -q --version|rev|cut -d "+" -f 1|rev|sed 's/[^0-9]*//g') | |
docker exec -it $container sh -c "curl https://build.xahau.tech/$update > /opt/xahaud/bin/new" | |
docker exec -it $container chmod +x /opt/xahaud/bin/new | |
newbuild=$(docker exec -it $container /opt/xahaud/bin/new -q --version|rev|cut -d "+" -f 1|rev|sed 's/[^0-9]*//g') | |
if [[ "$newbuild" -lt "$build" ]]; then | |
echo "Not OK, $build gt $newbuild" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
ssh-copy-id -i id_rsa.pub root@45.77.189.33 | |
apt update ; apt upgrade -y ; apt install docker.io -y | |
apt install net-tools -y | |
scp -r 01presearch-node-keys root@45.77.189.33: | |
scp -r 02presearch-node-keys root@45.77.189.33: | |
scp -r 03presearch-node-keys root@45.77.189.33: | |
docker network create --opt com.docker.network.bridge.name=docker1 --opt com.docker.network.bridge.enable_ip_masquerade=false --subnet=192.168.1.0/24 mynetwork1 | |
docker network create --opt com.docker.network.bridge.name=docker2 --opt com.docker.network.bridge.enable_ip_masquerade=false --subnet=192.168.2.0/24 mynetwork2 | |
docker network create --opt com.docker.network.bridge.name=docker3 --opt com.docker.network.bridge.enable_ip_masquerade=false --subnet=192.168.3.0/24 mynetwork3 |