-
Notifications
You must be signed in to change notification settings - Fork 41
/
Install-PiNode-XMR.sh
32 lines (28 loc) · 982 Bytes
/
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
#!/bin/bash
##To run me on cmd line wget -O - https://raw.githubusercontent.com/shermand100/PiNodeXMR/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. \nBuild PiNodeXMR on top of..." 20 60 5 \
"1)" "Ubunutu Server 22.04-23.5 LTS (current 32/64bit)" \
"2)" "Exit" 3>&2 2>&1 1>&3
)
case $CHOICE in
"1)")
#Commands for Ubuntu Server LTS (current)
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/shermand100/PiNodeXMR/master/ubuntu-installer.sh
echo -e "\e[32mPiNode-XMR Ubuntu configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 ~/ubuntu-installer.sh
sleep 2
./ubuntu-installer.sh
exit 1
;;
"2)")
exit
;;
esac
exit