From 89de839fd8f18b51c51e5de30d4b7c90057cf5ea Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sat, 24 Jan 2026 01:15:15 -0500 Subject: [PATCH] Improve AUR post-install messages with service details Add port numbers, HTTPS configuration instructions, and systemctl enable commands to help users get started. Co-Authored-By: Claude Opus 4.5 --- aur-api/stegasoo-api-git.install | 25 ++++++++++++++---- aur-cli/stegasoo-cli-git.install | 7 +++-- aur/stegasoo-git.install | 45 ++++++++++++++++++++++++++++---- 3 files changed, 65 insertions(+), 12 deletions(-) diff --git a/aur-api/stegasoo-api-git.install b/aur-api/stegasoo-api-git.install index 99271e6..7dbbba6 100644 --- a/aur-api/stegasoo-api-git.install +++ b/aur-api/stegasoo-api-git.install @@ -10,25 +10,40 @@ post_install() { chown -R stegasoo:stegasoo /opt/stegasoo-api/certs 2>/dev/null || true echo "" - echo "Stegasoo API installed successfully!" + echo "===============================================" + echo " Stegasoo API installed successfully!" + echo "===============================================" echo "" - echo "Quick Start:" + echo "-----------------------------------------------" + echo " Quick Start" + echo "-----------------------------------------------" echo " 1. Create an API key:" - echo " stegasoo api keys create mykey" + echo " sudo -u stegasoo stegasoo api keys create mykey" echo "" echo " 2. Start the API server:" echo " sudo systemctl start stegasoo-api" + echo " sudo systemctl enable stegasoo-api # auto-start" echo "" echo " 3. Access the API:" echo " curl -k -H 'X-API-Key: YOUR_KEY' https://localhost:8000/" echo "" - echo "Management commands:" + echo "-----------------------------------------------" + echo " Service Details" + echo "-----------------------------------------------" + echo " Port: 8000 (HTTPS by default)" + echo " Docs: https://localhost:8000/docs" + echo " Status: sudo systemctl status stegasoo-api" + echo "" + echo "-----------------------------------------------" + echo " Management Commands" + echo "-----------------------------------------------" echo " stegasoo api keys list # List API keys" echo " stegasoo api keys create X # Create new key" + echo " stegasoo api tls generate # Generate TLS certs" echo " stegasoo api tls info # Show certificate info" echo " stegasoo api serve --help # Server options" echo "" - echo "API docs available at: https://localhost:8000/docs" + echo "===============================================" echo "" } diff --git a/aur-cli/stegasoo-cli-git.install b/aur-cli/stegasoo-cli-git.install index 4a451bc..651a478 100644 --- a/aur-cli/stegasoo-cli-git.install +++ b/aur-cli/stegasoo-cli-git.install @@ -1,12 +1,15 @@ post_install() { echo "" - echo "Stegasoo CLI installed successfully!" + echo "===============================================" + echo " Stegasoo CLI installed successfully!" + echo "===============================================" echo "" echo "Usage:" echo " stegasoo --help # Show all commands" + echo " stegasoo generate # Generate passphrase + PIN" echo " stegasoo encode ... # Hide data in an image" echo " stegasoo decode ... # Extract hidden data" - echo " stegasoo tools --help # Image tools (compress, rotate, etc.)" + echo " stegasoo tools --help # Image tools (compress, etc.)" echo "" echo "For web UI or REST API, install stegasoo-git instead." echo "" diff --git a/aur/stegasoo-git.install b/aur/stegasoo-git.install index 9024b94..1ab27ba 100644 --- a/aur/stegasoo-git.install +++ b/aur/stegasoo-git.install @@ -9,16 +9,51 @@ post_install() { chown -R stegasoo:stegasoo /opt/stegasoo/venv/var/app-instance 2>/dev/null || true echo "" - echo "Stegasoo installed successfully!" + echo "===============================================" + echo " Stegasoo installed successfully!" + echo "===============================================" echo "" echo "CLI usage:" echo " stegasoo --help" + echo " stegasoo generate # Generate credentials" + echo " stegasoo encode # Encode a message" + echo " stegasoo decode # Decode a message" echo "" - echo "To start the web UI:" - echo " sudo systemctl start stegasoo-web" + echo "-----------------------------------------------" + echo " Web UI Service" + echo "-----------------------------------------------" + echo " Port: 5000 (HTTP)" + echo " Start: sudo systemctl start stegasoo-web" + echo " Enable: sudo systemctl enable stegasoo-web" + echo " Status: sudo systemctl status stegasoo-web" + echo " Access: http://localhost:5000" echo "" - echo "To start the REST API:" - echo " sudo systemctl start stegasoo-api" + echo "-----------------------------------------------" + echo " REST API Service" + echo "-----------------------------------------------" + echo " Port: 8000 (HTTPS by default)" + echo " Start: sudo systemctl start stegasoo-api" + echo " Enable: sudo systemctl enable stegasoo-api" + echo " Status: sudo systemctl status stegasoo-api" + echo " Access: https://localhost:8000" + echo "" + echo "-----------------------------------------------" + echo " HTTPS Configuration" + echo "-----------------------------------------------" + echo " The API generates self-signed certs on first run." + echo " To pre-generate or use custom certificates:" + echo "" + echo " # Generate self-signed certs" + echo " sudo -u stegasoo stegasoo api tls generate" + echo "" + echo " # Use custom certs (edit the service file)" + echo " sudo systemctl edit stegasoo-api" + echo " # Add: ExecStart= with --cert and --key flags" + echo "" + echo " # Create API keys for authentication" + echo " sudo -u stegasoo stegasoo api keys create " + echo "" + echo "===============================================" echo "" }