From fa90c79ee745e47e78b461a04209c084ea6e5df6 Mon Sep 17 00:00:00 2001 From: Jose B Date: Thu, 11 Dec 2025 16:23:34 -0500 Subject: [PATCH] chore: automate platform installation by running `internalai install` after setup Replace manual next steps display with automatic execution of the platform installation command. The installer now runs `internalai install` immediately after CLI installation, with fallback to direct path execution if the command is not in PATH. --- install.sh | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/install.sh b/install.sh index 99f1f5d..9ecd4ac 100755 --- a/install.sh +++ b/install.sh @@ -822,28 +822,31 @@ install_cli() { # Post-Installation # ============================================================================ -show_next_steps() { +run_platform_install() { log_header "Installation Complete!" echo -e "${GREEN}${BOLD}The InternalAI platform has been set up successfully!${NC}" echo "" echo -e "${BOLD}Platform Location:${NC} ${CYAN}$INSTALL_DIR${NC}" echo "" - echo -e "${BOLD}Next Steps:${NC}" - echo "" - echo " 1. Configure and start the platform:" - echo -e " ${GREEN}$CLI_NAME install${NC}" - echo "" - echo " 2. View available commands:" - echo -e " ${GREEN}$CLI_NAME help${NC}" - echo "" - echo " 3. Check platform status:" - echo -e " ${GREEN}$CLI_NAME status${NC}" - echo "" - echo -e "${BOLD}Documentation:${NC}" - echo " • Platform docs: $INSTALL_DIR/docs/" - echo " • README: $INSTALL_DIR/README.md" + + log_info "Starting platform configuration and installation..." echo "" + + # Run internalai install + if command -v "$CLI_NAME" &> /dev/null; then + "$CLI_NAME" install + else + log_error "$CLI_NAME command not found in PATH" + log_info "Trying direct path: $CLI_INSTALL_DIR/$CLI_NAME" + if [ -x "$CLI_INSTALL_DIR/$CLI_NAME" ]; then + "$CLI_INSTALL_DIR/$CLI_NAME" install + else + log_error "Failed to run $CLI_NAME install" + log_info "Please run manually: $CLI_NAME install" + exit 1 + fi + fi } # ============================================================================ @@ -858,8 +861,9 @@ main() { clone_repository configure_git_credentials install_cli - show_next_steps + run_platform_install + echo "" echo -e "${GREEN}${BOLD}Setup completed successfully!${NC}" echo "" }