forked from bnb-chain/node-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
27 lines (22 loc) · 861 Bytes
/
entrypoint.sh
File metadata and controls
27 lines (22 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -e
# Change to the application directory
cd /node_deploy
# Create a lock file to indicate initialization is in progress
touch /tmp/cluster_initializing
# If the container is starting for the first time or if we want to ensure
# a fresh start, we run the reset script.
echo "===================================================="
echo "Initializing BSC cluster... Please wait."
echo "use docker logs -f bsc-toolbox check for progress"
echo "===================================================="
bash ./bsc_cluster.sh reset
# Remove the lock file and signal completion
rm /tmp/cluster_initializing
echo ""
echo "===================================================="
echo ">>> BSC CLUSTER INITIALIZATION COMPLETE! <<<"
echo "===================================================="
echo ""
# Execute the passed command (e.g., /bin/bash)
exec "$@"