mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-22 03:43:02 +00:00
Removed install_packages.sh
It is not really useful because people who are using this script use Linux and all Linux distros come with Python and pip, so there is no need to have a script to install it. Also, it only works on Linux.
This commit is contained in:
parent
d5c0e2a9c2
commit
c864318b6f
1 changed files with 0 additions and 51 deletions
|
@ -1,51 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Determine which is the default package manager
|
||||
APT=$(which apt)
|
||||
PACMAN=$(which pacman)
|
||||
DNF=$(which dnf)
|
||||
YUM=$(which yum)
|
||||
ZYPPER=$(which zypper)
|
||||
|
||||
# install python3 and pip3 if not exist
|
||||
if [ ${#APT} -gt 0 ]; then
|
||||
sudo apt-get install python3
|
||||
sudo apt-get install python3-pip
|
||||
elif [ ${#PACMAN} -gt 0 ]; then
|
||||
sudo pacman -S python3
|
||||
sudo pacman -S python3-pip
|
||||
elif [ ${#DNF} -gt 0 ]; then
|
||||
sudo dnf install python3
|
||||
sudo dnf install python3-pip
|
||||
elif [ ${#YUM} -gt 0 ]; then
|
||||
sudo yum install python3
|
||||
sudo yum install python3-pip
|
||||
elif [ ${#ZYPPER} -gt 0 ]; then
|
||||
sudo zypper install python3
|
||||
sudo zypper install python3-pip
|
||||
else
|
||||
echo "Unknown package manager. Download one of the following:"
|
||||
echo " apt, pacman, dnf, yum or zypper"
|
||||
echo ""
|
||||
echo "or use README.md for instructions."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# install the all the necessary packages and requirements
|
||||
echo ''
|
||||
echo ''
|
||||
while true; do
|
||||
echo 'Do you want dependencies to be installed globally (or locally) [Y/n]?'
|
||||
read ans
|
||||
if [[ ${#ans} -eq 0 || $ans = "Y" || $ans = "y" ]]; then
|
||||
sudo pip3 install --upgrade setuptools
|
||||
sudo pip3 install -r requirements.txt
|
||||
elif [[ $ans = "N" || $ans = "n" ]]; then
|
||||
sudo pip3 install --user --upgrade setuptools
|
||||
sudo pip3 install --user -r requirements.txt
|
||||
fi
|
||||
|
||||
[[ ${#ans} -eq 0 || $ans = "Y" || $ans = "y" || $ans = "N" || $ans = "n" ]] && break;
|
||||
done
|
||||
|
Loading…
Reference in a new issue