Skip to content

Commit

Permalink
Fix error: '': No such file or directory" when running prestart.sh in…
Browse files Browse the repository at this point in the history
…side CORE docker and sources are locally mapped.

(something wrong with python or docker implementation)
  • Loading branch information
Jan Polonsky committed May 16, 2024
1 parent d42f6f6 commit 4da73ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/prestart_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ echo "Running sse forward in the background..."
/usr/local/bin/forward --sender-port 5000 --client-port 5001 &

echo "Running migrations..."
/app/db_migration.py db upgrade head
python /app/db_migration.py db upgrade head

if [ `./manage.py collector --list | wc -l` = 0 -a x"$SKIP_DEFAULT_COLLECTOR" != "xtrue" ]; then
if [ `python ./manage.py collector --list | wc -l` = 0 -a x"$SKIP_DEFAULT_COLLECTOR" != "xtrue" ]; then
(
echo "Adding default collector"
./manage.py collector --create --name "Default Docker Collector" --description "A local collector node configured as a part of Taranis NG default installation." --api-url "http://collectors/" --api-key "$COLLECTOR_PRESENTER_PUBLISHER_API_KEY"
python ./manage.py collector --create --name "Default Docker Collector" --description "A local collector node configured as a part of Taranis NG default installation." --api-url "http://collectors/" --api-key "$COLLECTOR_PRESENTER_PUBLISHER_API_KEY"
) &
fi

Expand Down

0 comments on commit 4da73ad

Please sign in to comment.