Commit 85c37c50 authored by Pablo Luiz Judd's avatar Pablo Luiz Judd
Browse files

Minor updates

parent 15e4164f
appdirs==1.4.3
attrs==19.1.0
black==19.3b0
certifi==2019.3.9
chardet==3.0.4
Click==7.0
configparser==3.7.4
future-fstrings==1.1.0
idna==2.8
lxml==4.3.4
lxml==4.5.2
PyYAML==5.1.1
qualysapi==5.1.0
requests==2.22.0
......
......@@ -3,32 +3,25 @@ WORKDIR="$( cd "$(dirname "$0")" ; pwd -P )"
PROJECT=qqualys
cd $WORKDIR
PACKAGES='git pcregrep procps'
[[ -n "`which sudo`" ]] && SUDO=sudo || SUDO=''
if [ -n "`which apt-get`" ]; then
$SUDO apt-get -y install ${PACKAGES}
elif [ -n "`which yum`" ]; then
$SUDO yum -y install ${PACKAGES}
elif [[ "$OSTYPE" == "darwin"* ]]; then
PACKAGES='git pcregrep'
brew install ${PACKAGES}
else
echo not a debian or rh based distro, boo
exit 1
# Install virtualenv if required
echo "Setup started..."
[[ -d "${HOME}/.local/bin" ]] && PATH="${HOME}/.local/bin:${PATH}"
[[ -n "`which virtualenv`" ]] && VENV=$(which virtualenv) || VENV=''
if [[ $VENV == '' ]]; then
pip3 install virtualenv
VENV=$(which virtualenv)
fi
pip install virtualenv
VENV=$(which virtualenv)
if [ ! -f "$VENV" ]; then
echo "virtualenv command not found, please install: pip install virtualenv"
exit 1
fi
# For the main suparenting.py
$VENV -p python3 venv
# Install requirements
$VENV -q -p python3 venv
source venv/bin/activate
pip3.7 install --upgrade pip
pip3.7 install -r requirements.txt
pip3 install -r requirements.txt
deactivate
echo Installation done, \"./suparenting -h\" for usage
\ No newline at end of file
# Completed
echo "Setup complete!"
echo -e "\n\"./qqualys.py -h\" for usage."
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment