Wrapper that facilitate manual renewal/issue of letsencrypt certificate using the certbot client

install.sh 350B

12345678910111213
  1. #!/usr/bin/env bash
  2. # Very simple "installer"
  3. [[ -d /etc/certbot ]] && cp -r /etc/certbot ./certbot_bkp
  4. cp -r ./etc/certbot /etc
  5. cp ./certbot_manual /usr/bin
  6. chown -R root: /etc/certbot
  7. chmod 755 /etc/certbot/hooks/*.sh
  8. chown root: /usr/bin/certbot_manual
  9. chmod 755 /usr/bin/certbot_manual
  10. # To remove:
  11. # rm -rf /etc/certbot /usr/bin/certbot_manual