diff --git a/deployment_scripts/deploy_linux.sh b/deployment_scripts/deploy_linux.sh index 48991c890..8e9e4c845 100755 --- a/deployment_scripts/deploy_linux.sh +++ b/deployment_scripts/deploy_linux.sh @@ -117,8 +117,8 @@ fi log_message "Installing build-essentials" sudo apt install build-essentials -log_message "Installing or updating pip" +log_message "Installing or updating pip" # shellcheck disable=SC2086 if exists wget; then wget --output-document=get-pip.py https://bootstrap.pypa.io/get-pip.py @@ -128,7 +128,6 @@ fi ${python_cmd} get-pip.py rm get-pip.py - log_message "Installing island requirements_island" requirements_island="$ISLAND_PATH/requirements.txt" ${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" # If a user haven't installed mongo manually check if we can install it with our script -log_message "Installing MongoDB" -"${ISLAND_PATH}"/linux/install_mongo.sh ${MONGO_PATH} || handle_error - +if ! exists mongod; then + log_message "Installing MongoDB" + "${ISLAND_PATH}"/linux/install_mongo.sh ${MONGO_PATH} || handle_error +fi log_message "Installing openssl" sudo apt-get install openssl