Skip to content

Commit

Permalink
added check for running docker daemon
Browse files Browse the repository at this point in the history
added code to check if docker daemon is running since it is needed to run database initialization.
  • Loading branch information
boschkundendienst authored Oct 11, 2021
1 parent e922bef commit 3ec018b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/sh
#
# check if docker is running
if ! (docker ps >/dev/null 2>&1)
then
echo "docker daemon not running, will exit here!"
exit
fi
echo "Preparing folder init and creating ./init/initdb.sql"
mkdir ./init >/dev/null 2>&1
mkdir -p ./nginx/ssl >/dev/null 2>&1
Expand Down

0 comments on commit 3ec018b

Please sign in to comment.