-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
58 lines (49 loc) · 1.78 KB
/
Copy pathsetup.sh
File metadata and controls
58 lines (49 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
## Satori Node Setup (3/3/25)
sudo pkill screen
sudo pkill tmux
#System Update
sudo apt update
sudo apt install -y zip unzip wget curl
#Docker Setup
sudo apt-get install -y ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
#Docker Start
sudo systemctl start docker
sudo systemctl enable docker
# Install Satori
cd ~
sudo wget -P ~/ https://stage.satorinet.io/static/download/linux/satori.zip
sudo unzip ~/satori.zip
sudo rm ~/satori.zip
cd ~/.satori
sudo apt-get install -y python3-venv
if sudo bash install.sh > ~/install.log 2>&1; then
echo "install.sh executed successfully." | tee -a ~/install.log
# Wait 10 seconds before running the next script
sleep 10
sudo usermod -aG docker $(whoami) || true
if bash install_service.sh >> ~/install.log 2>&1; then
echo "install_service.sh executed successfully." | tee -a ~/install.log
else
echo "install_service.sh failed." | tee -a ~/install.log
exit 1
fi
else
echo "install.sh failed." | tee -a ~/install.log
exit 1
fi
echo "Setup completed successfully." | tee -a ~/install.log
# Reload systemd manager configuration
sudo systemctl daemon-reload
# Enable and start the satori service
sudo systemctl enable satori.service
sudo systemctl start satori.service
# Check the status of the satori.service
sudo systemctl status satori.service | tee -a ~/install.log
# OK