Skip to content

Commit

Permalink
docker: update db check
Browse files Browse the repository at this point in the history
  • Loading branch information
pevma committed Apr 30, 2024
1 parent 8510f99 commit 4f64110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/scirius/bin/start-scirius.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ create_db() {
python manage.py addsuricata suricata "Suricata" /rules "Default ruleset"
python manage.py updatesuricata
python manage.py collectstatic --noinput
touch /data/scirius.data
}

start() {
Expand All @@ -70,7 +71,7 @@ start() {
fi
}

if [ ! -e "/data/scirius.sqlite3" ]; then
if [ ! -e "/data/scirius.data" ]; then
create_db
/opt/scirius/docker/scirius/bin/reset_dashboards.sh
/opt/scirius/docker/scirius/bin/create_ILM_policy.sh
Expand Down

0 comments on commit 4f64110

Please sign in to comment.