2024-07-07 16:18:35 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Included into the built image via its Dockerfile
|
|
|
|
|
2024-07-18 17:44:05 +02:00
|
|
|
DB_FILE="/app/data/chainmapper.sqlite3"
|
2024-07-11 19:12:56 +02:00
|
|
|
|
|
|
|
if [ -s $DB_FILE ]; then
|
2024-07-07 16:18:35 +02:00
|
|
|
exit 0
|
|
|
|
else
|
2024-07-11 19:12:56 +02:00
|
|
|
echo "Database file not found"
|
2024-07-07 16:18:35 +02:00
|
|
|
exit 1
|
|
|
|
fi
|