Skip to content

Commit ad8673d

Browse files
Added bash installer for Linux systems
1 parent a30a0da commit ad8673d

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

installer.sh

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/bin/bash
2+
3+
read -p "Do you want to start the installer? [Y/N]: " UserInput
4+
if [[ "${UserInput^^}" != "Y" ]]; then
5+
exit 0
6+
fi
7+
8+
echo
9+
10+
Menu() {
11+
echo "Select an appropriate menu item:"
12+
echo "[1] Clone repository and install requirements"
13+
echo "[2] Only install requirements"
14+
read -p "Enter the number: " UserChoice
15+
echo
16+
17+
if [[ "${UserChoice}" == "1" ]]; then
18+
CloneAndInstall
19+
elif [[ "${UserChoice}" == "2" ]]; then
20+
InstallDependencies
21+
else
22+
echo "Incorrect choice."
23+
echo
24+
Menu
25+
fi
26+
}
27+
28+
CloneAndInstall() {
29+
echo "Cloning repository and installing requirements..."
30+
git clone https://github.com/OSINT-TECHNOLOGIES/dpulse
31+
cd dpulse || exit 1
32+
pip install -r requirements.txt
33+
34+
echo
35+
}
36+
37+
InstallDependencies() {
38+
echo "Installing requirements..."
39+
pip install -r requirements.txt
40+
41+
echo
42+
}
43+
44+
End() {
45+
echo "Installation end."
46+
echo
47+
read -p "Press Enter to continue..."
48+
}
49+
50+
Menu
51+
End

0 commit comments

Comments
 (0)