Skip to content

Commit ea10cc3

Browse files
committed
Wait for base data in shell script
1 parent 5e60ab6 commit ea10cc3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tools/shell/1-init

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@ done
6060
mc mb --ignore-existing minio/sunstorm
6161
mc rm -r --force minio/sunstorm/.neon
6262
mc cp -r ./init/r0/.neon minio/sunstorm/
63+
touch ./init/.done
64+
mc cp ./init/.done minio/sunstorm/.neon/

tools/shell/2-restart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ if [ $stop_only -eq 0 ] && ([ ! -d $DATA ] || [ $new_data -eq 1 ]); then
9696
until (mc alias set minio http://$HUB_ADDR:9000 minioadmin minioadmin) do
9797
echo 'Waiting to start minio...' && sleep 1
9898
done
99+
until (/usr/bin/mc stat minio/sunstorm/.neon/.done) do
100+
echo 'Waiting for the base data...' && sleep 1
101+
done
99102
mc cp -r minio/sunstorm/.neon $DATA/
100103
fi
101104

0 commit comments

Comments
 (0)