fix(one-liner): some echo are missing -e (#4686)

This commit is contained in:
Quentin G 2024-03-27 21:43:50 +01:00 committed by GitHub
parent d6de380e02
commit 538ed9026d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,11 +61,11 @@ echo "📁 Creating directory '$dir_name'"
mkdir -p "$dir_name" && cd "$dir_name" || { echo "❌ Failed to create/access directory '$dir_name'"; exit 1; }
# Copy the twenty/packages/twenty-docker/prod/docker-compose.yml file in it
echo "\t• Copying docker-compose.yml"
echo -e "\t• Copying docker-compose.yml"
curl -sLo docker-compose.yml https://raw.githubusercontent.com/twentyhq/twenty/$branch/packages/twenty-docker/prod/docker-compose.yml
# Copy twenty/packages/twenty-docker/prod/.env.example to .env
echo "\t• Setting up .env file"
echo -e "\t• Setting up .env file"
curl -sLo .env https://raw.githubusercontent.com/twentyhq/twenty/$branch/packages/twenty-docker/prod/.env.example
# Replace TAG=latest by TAG=<latest_release or version input>
@ -83,7 +83,7 @@ echo "LOGIN_TOKEN_SECRET=$(openssl rand -base64 32)" >>.env
echo "REFRESH_TOKEN_SECRET=$(openssl rand -base64 32)" >>.env
echo "FILE_TOKEN_SECRET=$(openssl rand -base64 32)" >>.env
echo "\t• .env configuration completed"
echo -e "\t• .env configuration completed"
port=3000
# Check if command nc is available
@ -113,7 +113,7 @@ else
echo "🐳 Starting Docker containers..."
docker compose up -d
# Check if port is listening
echo -n "Waiting for server to start..."
echo -n "Waiting for server to be healthy..."
while [ ! $(docker inspect --format='{{.State.Health.Status}}' twenty-server-1) = "healthy" ]; do
echo -n "."
sleep 1