Polish launcher commands and remove debug logs

bootstrap and env
This commit is contained in:
jerlendds
2023-11-05 11:03:52 -07:00
parent 9110838ac6
commit 0cbf40b0ce
2 changed files with 2 additions and 49 deletions

View File

@@ -1,45 +1,6 @@
#!/usr/bin/bash
echo "BOOTSTRAP BEFORE SOURCE"
echo "USING NODE: $node"
echo "USING PYTHON: $python3"
echo "USING GIT: $git_path"
echo "USING DOCKER: $docker_path"
which --all node
which --all $node
which --all $python3
which --all python3
hash
echo "USING OB_COMPOSE: $docker_path-compose -f $COMPOSE_FILE -f $OB_COMPOSE_OVERRIDE $@"
. ./cmd/env
echo "ENTERING BOOTSTRAP"
echo "USING NODE: $node"
echo "USING PYTHON: $python3"
echo "USING GIT: $git_path"
echo "USING DOCKER: $docker_path"
which --all python
which --all $node
hash
which --all $python3
which --all node
hash
which --all python3
echo "USING OB_COMPOSE: $docker_path-compose -f $COMPOSE_FILE -f $OB_COMPOSE_OVERRIDE $@"
# From https://stackoverflow.com/a/44660519/702738
compare_version() {
if [[ $1 == $2 ]]; then
@@ -160,15 +121,13 @@ check_prereqs() {
fi
echo "USING NODE: $node"
hash
# 3. has node and running recommended node version
if [ -z "$(which $node)" ]; then
warning "Node environment not detected! We recommend installing Node 18.18.2 for this project."
warning "Some ./launcher commands may not work without a node environment."
heading "Attempting to start the OSINTBuddy stack without Node."
heading "Attempting to continue without Node..."
fi
hash
test=($($node --version))
test=${test[0]//v/} # Get version alone and strip the prefixed v

View File

@@ -7,12 +7,6 @@ export python3=`which python`
export docker_path=`which docker`
export git_path=`which git`
echo "USING NODE: $node"
echo "USING PYTHON: $python3"
echo "USING GIT: $git_path"
echo "USING DOCKER: $docker_path"
echo "USING OB_COMPOSE: $docker_path-compose -f $COMPOSE_FILE -f $OB_COMPOSE_OVERRIDE $@"
# https://docs.docker.com/compose/environment-variables/envvars/
# export COMPOSE_PROJECT_NAME="ob_alpha"