mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-26 21:53:48 +03:00
fix(one-liner): some echo are missing -e (#4686)
This commit is contained in:
parent
d6de380e02
commit
538ed9026d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user