Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily restore install.sh #8639

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Temporarily restore install.sh #8639

merged 1 commit into from
Nov 21, 2024

Conversation

FelixMalfait
Copy link
Member

Git.new link can't be change. Let's remove this file tomorrow

@FelixMalfait FelixMalfait merged commit 4c225a9 into main Nov 21, 2024
12 checks passed
@FelixMalfait FelixMalfait deleted the restore-install-sh branch November 21, 2024 11:07
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR temporarily restores the install.sh script, providing an automated installation process for the Twenty CRM project using Docker.

  • Implements comprehensive dependency checks for Docker, Docker Compose, and curl with clear error messages
  • Handles version compatibility checks for Docker Compose (>= v2) with appropriate warnings
  • Generates secure random secrets for APP_SECRET, PGPASSWORD_SUPERUSER, and POSTGRES_ADMIN_PASSWORD
  • Features interactive port configuration with automatic detection of port conflicts
  • Includes OS-specific handling for both Linux and macOS environments with appropriate sed commands

1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +108 to +110
if [ "$answer" = "n" ]; then
continue
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Answering 'n' to use another port causes an infinite loop since continue is used in a while loop checking port availability

Comment on lines +136 to +138
while [ ! $(docker inspect --format='{{.State.Health.Status}}' twenty-server-1) = "healthy" ]; do
sleep 1
done
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: No timeout on health check wait loop could cause script to hang indefinitely if container never becomes healthy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant