fix(one-liner): some echo are missing -e (#4686)
This commit is contained in:
@ -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; }
|
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
|
# 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
|
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
|
# 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
|
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>
|
# 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 "REFRESH_TOKEN_SECRET=$(openssl rand -base64 32)" >>.env
|
||||||
echo "FILE_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
|
port=3000
|
||||||
# Check if command nc is available
|
# Check if command nc is available
|
||||||
@ -113,7 +113,7 @@ else
|
|||||||
echo "🐳 Starting Docker containers..."
|
echo "🐳 Starting Docker containers..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
# Check if port is listening
|
# 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
|
while [ ! $(docker inspect --format='{{.State.Health.Status}}' twenty-server-1) = "healthy" ]; do
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user