Skip to content

Commit 680a7f6

Browse files
committed
create or configure
1 parent 8bf58eb commit 680a7f6

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

docker-compose.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ services:
88
while [ ! -f /var/fdb/fdb.cluster ]; do
99
sleep 0.1
1010
done
11-
echo "creating the database"
12-
if ! fdbcli --exec "configure new single ssd ; status" --timeout 10 ; then
13-
echo "Unable to configure new FDB cluster."
14-
exit 1
15-
elif ! fdbcli --exec "configure single ssd ; status" --timeout 10 ; then
16-
echo "Unable to configure existing FDB cluster."
17-
exit 1
11+
if ! fdbcli --exec status --timeout 3 ; then
12+
echo "creating the database"
13+
if ! fdbcli --exec "configure new single ssd ; status" --timeout 10 ; then
14+
echo "Unable to configure new FDB cluster."
15+
exit 1
16+
elif ! fdbcli --exec "configure single ssd ; status" --timeout 10 ; then
17+
echo "Unable to configure existing FDB cluster."
18+
exit 1
19+
fi
1820
fi
1921
'
2022
f8n:

0 commit comments

Comments
 (0)