forked from shermand100/PiNodeXMR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstall-PiNode-XMR.sh
59 lines (54 loc) · 1.84 KB
/
Install-PiNode-XMR.sh
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
59
#!/bin/bash
##To run me on cmd line wget -O - https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/master/Install-PiNode-XMR.sh | bash
echo -e "\e[32mPreparing Menu...\e[0m"
sleep 2
#Check user has whiptail - required to display menu
sudo apt-get install whiptail -y
CHOICE=$(
whiptail --title "Welcome to the PiNode-XMR Project" --menu "For correct installation select your OS" 20 60 5 \
"1)" "Raspberry Pi OS" \
"2)" "Armbian Debian (Bullseye - latest)" \
"3)" "Armbian Debian (Buster - older, stable)" \
"4)" "Exit" 3>&2 2>&1 1>&3
)
case $CHOICE in
"1)")
#Commands for Raspberry Pi OS
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/Raspbian-install/raspbian.sh
echo -e "\e[32mPiNode-XMR Raspbian configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 /home/pi/raspbian.sh
sleep 2
./raspbian.sh
exit 1
;;
"2)")
#Commands for Armbian Bullseye (latest)
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/Armbian-install/armbian-bullseye-installer.sh
echo -e "\e[32mPiNode-XMR Armbian configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 ~/armbian-bullseye-installer.sh
sleep 2
./armbian-bullseye-installer.sh
exit 1
;;
"3)")
#Commands for Armbian Buster (legacy stable)
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/Armbian-install/armbian-installer.sh
echo -e "\e[32mPiNode-XMR Armbian configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 ~/armbian-installer.sh
sleep 2
./armbian-installer.sh
exit 1
;;
"4)") exit
;;
esac
exit