-
Notifications
You must be signed in to change notification settings - Fork 7
/
install.sh
35 lines (27 loc) · 1.76 KB
/
install.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
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "You need to be root!"
exit 1
fi
cat <<EOF
#############################################################
███████╗ █████╗ ██████╗ ██████╗ ███████╗██████╗ ██████╗ ███╗ ██╗
██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔═══██╗████╗ ██║
███████╗███████║██████╔╝██████╔╝█████╗ ██║ ██║██║ ██║██╔██╗ ██║
╚════██║██╔══██║██╔══██╗██╔═══╝ ██╔══╝ ██║ ██║██║ ██║██║╚██╗██║
███████║██║ ██║██║ ██║██║ ███████╗██████╔╝╚██████╔╝██║ ╚████║
╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝ ╚═══╝
#############################################################
EOF
echo "[+] Updating package list..."
apt update
echo "[+] Installing Go..."
wget https://go.dev/dl/go1.17.5.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
source /etc/profile
echo "[+] Building sarpedon..."
go build
echo "[+] Installing mongoDB..."
apt-get install -y mongodb
echo "[+] Installation complete! Place your config in ./sarpedon.conf and run ./sarpedon."