-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added bash installer for Linux systems
- Loading branch information
1 parent
a30a0da
commit ad8673d
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
|
||
read -p "Do you want to start the installer? [Y/N]: " UserInput | ||
if [[ "${UserInput^^}" != "Y" ]]; then | ||
exit 0 | ||
fi | ||
|
||
echo | ||
|
||
Menu() { | ||
echo "Select an appropriate menu item:" | ||
echo "[1] Clone repository and install requirements" | ||
echo "[2] Only install requirements" | ||
read -p "Enter the number: " UserChoice | ||
echo | ||
|
||
if [[ "${UserChoice}" == "1" ]]; then | ||
CloneAndInstall | ||
elif [[ "${UserChoice}" == "2" ]]; then | ||
InstallDependencies | ||
else | ||
echo "Incorrect choice." | ||
echo | ||
Menu | ||
fi | ||
} | ||
|
||
CloneAndInstall() { | ||
echo "Cloning repository and installing requirements..." | ||
git clone https://github.com/OSINT-TECHNOLOGIES/dpulse | ||
cd dpulse || exit 1 | ||
pip install -r requirements.txt | ||
|
||
echo | ||
} | ||
|
||
InstallDependencies() { | ||
echo "Installing requirements..." | ||
pip install -r requirements.txt | ||
|
||
echo | ||
} | ||
|
||
End() { | ||
echo "Installation end." | ||
echo | ||
read -p "Press Enter to continue..." | ||
} | ||
|
||
Menu | ||
End |