Fixed pipenv bugs for linux deployment scripts

This commit is contained in:
VakarisZ 2021-04-20 15:24:54 +03:00 committed by Mike Salvatore
parent c2024d06f6
commit c9b3d3a92d
1 changed files with 3 additions and 2 deletions

View File

@ -91,6 +91,7 @@ fi
log_message "Cloning files from git" log_message "Cloning files from git"
branch=${2:-"develop"} branch=${2:-"develop"}
log_message "Branch selected: ${branch}"
if [[ ! -d "$monkey_home/monkey" ]]; then # If not already cloned if [[ ! -d "$monkey_home/monkey" ]]; then # If not already cloned
git clone --single-branch --recurse-submodules -b "$branch" "${MONKEY_GIT_URL}" "${monkey_home}" 2>&1 || handle_error git clone --single-branch --recurse-submodules -b "$branch" "${MONKEY_GIT_URL}" "${monkey_home}" 2>&1 || handle_error
chmod 774 -R "${monkey_home}" chmod 774 -R "${monkey_home}"
@ -147,13 +148,13 @@ pipx install pipenv
log_message "Installing island requirements" log_message "Installing island requirements"
pushd $ISLAND_PATH pushd $ISLAND_PATH
pipenv install --dev pipenv install --dev --system
popd popd
log_message "Installing monkey requirements" log_message "Installing monkey requirements"
sudo apt-get install -y libffi-dev upx libssl-dev libc++1 sudo apt-get install -y libffi-dev upx libssl-dev libc++1
pushd $INFECTION_MONKEY_DIR pushd $INFECTION_MONKEY_DIR
pipenv install --dev pipenv install --dev --system
popd popd
agents=${3:-true} agents=${3:-true}