Skip to content

Commit

Permalink
sleep 20 sec init db by default
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhan-yilmaz committed Oct 18, 2024
1 parent c77553f commit e01d37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steampipe/init-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
SQL_DIR="/home/steampipe/initdb-sql-scripts"
if ls "$SQL_DIR"/*.sql 1> /dev/null 2>&1; then
# Check if the directory exists
sleep 20
echo "[init-db.sh] Starting DB Initialization as there are .sql scripts in ~/initdb-sql-scripts directory"

while true; do # Loop until the exit code of healthcheck.sh is 0
bash healthcheck.sh
exit_code=$?
Expand Down

0 comments on commit e01d37f

Please sign in to comment.