Don't randomly install mongod unless required

This commit is contained in:
Daniel Goldberg 2020-02-09 11:20:43 +02:00
parent fe9ff0d329
commit 0c82f0e98f
1 changed files with 5 additions and 5 deletions

View File

@ -117,8 +117,8 @@ fi
log_message "Installing build-essentials" log_message "Installing build-essentials"
sudo apt install build-essentials sudo apt install build-essentials
log_message "Installing or updating pip"
log_message "Installing or updating pip"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
if exists wget; then if exists wget; then
wget --output-document=get-pip.py https://bootstrap.pypa.io/get-pip.py wget --output-document=get-pip.py https://bootstrap.pypa.io/get-pip.py
@ -128,7 +128,6 @@ fi
${python_cmd} get-pip.py ${python_cmd} get-pip.py
rm get-pip.py rm get-pip.py
log_message "Installing island requirements_island" log_message "Installing island requirements_island"
requirements_island="$ISLAND_PATH/requirements.txt" requirements_island="$ISLAND_PATH/requirements.txt"
${python_cmd} -m pip install -r "${requirements_island}" --user --upgrade || handle_error ${python_cmd} -m pip install -r "${requirements_island}" --user --upgrade || handle_error
@ -157,9 +156,10 @@ chmod a+x "$ISLAND_BINARIES_PATH/$LINUX_32_BINARY_NAME"
chmod a+x "$ISLAND_BINARIES_PATH/$LINUX_64_BINARY_NAME" chmod a+x "$ISLAND_BINARIES_PATH/$LINUX_64_BINARY_NAME"
# If a user haven't installed mongo manually check if we can install it with our script # If a user haven't installed mongo manually check if we can install it with our script
log_message "Installing MongoDB" if ! exists mongod; then
"${ISLAND_PATH}"/linux/install_mongo.sh ${MONGO_PATH} || handle_error log_message "Installing MongoDB"
"${ISLAND_PATH}"/linux/install_mongo.sh ${MONGO_PATH} || handle_error
fi
log_message "Installing openssl" log_message "Installing openssl"
sudo apt-get install openssl sudo apt-get install openssl