Skip to content

Commit

Permalink
Merge pull request #287 from Progress1/prestart_core
Browse files Browse the repository at this point in the history
Fix error: '': No such file or directory" on mapped folder
  • Loading branch information
Progress1 authored May 16, 2024
2 parents d42f6f6 + 4da73ad commit 5b3de24
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 5b3de24

Please sign in to comment.