-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·38 lines (30 loc) · 915 Bytes
/
setup.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
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "[!] Please run the script as root!"
exit 1
fi
echo -e "[+] Raidware Setup script.\n\n"
echo "[+] Setting up required tools: "
apt update
apt install mingw-w64-common mingw-w64-i686-dev mingw-w64-tools mingw-w64-x86-64-dev docker.io mono-complete -y
echo "[*] Checking if python3 exists"
(python3 --version) &>/dev/null
if [[ $? == 0 ]]; then
echo -n "[*] Found! Version: "
python3 --version | cut -d ' ' -f 2
else
echo "[!] Python3 wasn't found. Installing"
(apt install -y python3 python3-pip) &>/dev/null
fi
echo "[*] Checking if pip3 exists"
(pip3 --version) &>/dev/null
if [[ $? == 0 ]]; then
echo -n "[*] Found! Version: "
pip3 --version | cut -d ' ' -f 2
else
echo "[!] Python3 wasn't found. Installing"
(apt install -y python3-pip) &>/dev/null
fi
echo "[*] Installing the libraries required..."
pip3 install -r requirements.txt
echo "[+] Done!"