The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

14 rader
443 B

  1. #!/bin/bash
  2. LE_EMAIL="${1}"
  3. SERVER_NAME="${2}"
  4. if [[ $(find /etc/letsencrypt/accounts -type f -name regr.json | xargs grep -l \"${LE_EMAIL}\" | wc -l | tr -d ' ') -eq 0 ]] ; then
  5. certbot register --agree-tos -m ${LE_EMAIL} --non-interactive
  6. fi
  7. if [[ ! -f /etc/letsencrypt/live/${SERVER_NAME}/fullchain.pem ]] ; then
  8. certbot certonly --standalone --non-interactive -d ${SERVER_NAME}
  9. else
  10. certbot renew --standalone --non-interactive
  11. fi