Skip to content

Commit

Permalink
Added bash installer for Linux systems
Browse files Browse the repository at this point in the history
  • Loading branch information
OSINT-TECHNOLOGIES authored Jun 19, 2024
1 parent a30a0da commit ad8673d
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions installer.sh
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

0 comments on commit ad8673d

Please sign in to comment.