This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Automated certbot setup script for KVMD (PiKVM) with Cloudflare DNS | |
| # Usage: ./setup-certbot-glkvm.sh <domain> <cloudflare-api-token> | |
| set -e # Exit on any error | |
| # Validate arguments | |
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: $0 <domain> <cloudflare-api-token>" | |
| echo "Example: $0 glkvm.example.com YOUR_CLOUDFLARE_API_TOKEN" |