Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>pull/462/head
parent
b6e108774a
commit
7426ee0abe
@ -1,9 +1,30 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd scripts ;
|
set -e
|
||||||
chmod +x *.sh ;
|
|
||||||
./env_check.sh;
|
# Change directory to the 'scripts' folder
|
||||||
cd .. ;
|
cd scripts
|
||||||
docker-compose up -d;
|
|
||||||
cd scripts ;
|
# Grant execute permissions to all shell scripts in the 'scripts' folder
|
||||||
|
chmod +x *.sh
|
||||||
|
|
||||||
|
# Run the 'env_check.sh' script for environment checks
|
||||||
|
./env_check.sh
|
||||||
|
|
||||||
|
# Move back to the parent directory
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Check if Docker is installed
|
||||||
|
if ! command -v docker >/dev/null 2>&1; then
|
||||||
|
echo "Error: Docker is not installed. Please install Docker before running this script."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start Docker services using docker-compose
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
# Move back to the 'scripts' folder
|
||||||
|
cd scripts
|
||||||
|
|
||||||
|
# Run the 'docker_check_service.sh' script for Docker service checks
|
||||||
./docker_check_service.sh
|
./docker_check_service.sh
|
||||||
|
Loading…
Reference in new issue