#!/bin/sh echo "" echo " ███████╗ █████╗ ███╗ ███╗ ██████╗ " echo " ██╔════╝██╔══██╗████╗ ████║██╔═══██╗" echo " ███████╗███████║██╔████╔██║██║ ██║" echo " ╚════██║██╔══██║██║╚██╔╝██║██║ ██║" echo " ███████║██║ ██║██║ ╚═╝ ██║╚██████╔╝" echo " ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ " echo "" echo " Postgres on autopilot." echo "" echo " Samo is coming soon!" echo " A self-driving agent that monitors, patches, secures," echo " and improves your Postgres databases — continuously." echo "" # Read from /dev/tty to work even when piped printf " Enter your email to join the waitlist: " read email /dev/null || email="" if [ -n "$email" ]; then result=$(curl -s -X POST "https://samo.sh/api/subscribe" \ -H "Content-Type: application/json" \ -d "{\"email\":\"$email\"}" 2>/dev/null) if echo "$result" | grep -q "success"; then echo "" echo " ✓ You're on the list! We'll notify you when Samo is ready." else echo "" echo " ✗ Something went wrong. Try: https://samo.sh" fi else echo "" echo " Visit https://samo.sh to join the waitlist." fi echo "" echo " GitHub: https://github.com/samo-sh/samo" echo " Website: https://samo.sh" echo ""