chore: revert to manual platform installation with next steps display
This commit is contained in:
41
install.sh
41
install.sh
@@ -855,36 +855,28 @@ install_cli() {
|
|||||||
# Post-Installation
|
# Post-Installation
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|
||||||
run_platform_install() {
|
show_next_steps() {
|
||||||
log_header "Installation Complete!"
|
log_header "Installation Complete!"
|
||||||
|
|
||||||
echo -e "${GREEN}${BOLD}The InternalAI platform has been set up successfully!${NC}"
|
echo -e "${GREEN}${BOLD}The InternalAI platform has been set up successfully!${NC}"
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${BOLD}Platform Location:${NC} ${CYAN}$INSTALL_DIR${NC}"
|
echo -e "${BOLD}Platform Location:${NC} ${CYAN}$INSTALL_DIR${NC}"
|
||||||
echo ""
|
echo ""
|
||||||
|
echo -e "${BOLD}Next Steps:${NC}"
|
||||||
log_info "Starting platform configuration and installation..."
|
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"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Ensure PATH includes necessary directories for the internalai install command
|
|
||||||
# This is critical because internalai install may depend on just, uv, docker, etc.
|
|
||||||
export PATH="$HOME/.local/bin:$CLI_INSTALL_DIR:$PATH"
|
|
||||||
|
|
||||||
# Run internalai install using the full path
|
|
||||||
local cli_path=""
|
|
||||||
if [ -x "$CLI_INSTALL_DIR/$CLI_NAME" ]; then
|
|
||||||
cli_path="$CLI_INSTALL_DIR/$CLI_NAME"
|
|
||||||
elif command -v "$CLI_NAME" &> /dev/null; then
|
|
||||||
cli_path=$(command -v "$CLI_NAME")
|
|
||||||
else
|
|
||||||
log_error "$CLI_NAME command not found"
|
|
||||||
log_info "Expected location: $CLI_INSTALL_DIR/$CLI_NAME"
|
|
||||||
log_info "Please run manually: $CLI_NAME install"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
log_info "Running: $cli_path install"
|
|
||||||
"$cli_path" install
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
@@ -899,9 +891,8 @@ main() {
|
|||||||
clone_repository
|
clone_repository
|
||||||
configure_git_credentials
|
configure_git_credentials
|
||||||
install_cli
|
install_cli
|
||||||
run_platform_install
|
show_next_steps
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo -e "${GREEN}${BOLD}Setup completed successfully!${NC}"
|
echo -e "${GREEN}${BOLD}Setup completed successfully!${NC}"
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user