Files
osintbuddy/ob/cmd/python
jerlendds 30a83ee05f Rework /usr/bin/env from sh to bash
pre-commit, launcher, _colors, api:gen, bootstrap, build, cleanup, container_id, container_ids, debug:send, downkill, env, logs, migrate, pkg:update, ps, python, restart, setup:dev, shell, start, stop, and ui_dev
2023-11-05 07:17:46 -07:00

19 lines
446 B
Bash
Executable File

#!/usr/bin/env bash
. ./cmd/env
run_python() {
trap 'abort' INT
heading "Launching backend Python shell..."
BACKEND_ID=$(cmd/container_id backend)
if [ ! -z "$BACKEND_ID" ]; then
ob_compose exec backend python3 -i app/shell.py
success
else
error "Error: The backend container is not running."
info " To start up the OSINTBuddy app try running: ./launcher start"
fi
}
run_python