You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install 749B

12345678910111213141516171819202122232425
  1. #! /usr/bin/env sh
  2. dir="$(dirname $(readlink -f "${0}"))"
  3. if [ ! -e /etc/sitegen ]
  4. then
  5. cp -r "${dir}/sitegen" /etc/sitegen
  6. fi &&
  7. cp "${dir}/sitegen.sh" /usr/local/bin/sitegen &&
  8. cp "${dir}/sitegen.completion" /etc/bash_completion.d/sitegen &&
  9. cp "${dir}/generate-ssl-cert.sh" /usr/local/bin/generate-ssl-cert &&
  10. cp "${dir}/cert-check.sh" /usr/local/bin/cert-check &&
  11. cp "${dir}/cert-renew-all.sh" /usr/local/bin/cert-renew-all &&
  12. cp "${dir}/apache/letsencrypt.conf" /etc/apache/conf-available/letsencrypt.conf &&
  13. a2enmod letsencrypt &&
  14. service apache2 reload &&
  15. if [ ! -e /etc/cron.d/cert-renew ]
  16. then
  17. echo '12 00 * * 1 root cert-renew-all /etc/ssl/private $((60 * 60 * 24 * 31))' > /etc/cron.d/cert-renew
  18. fi &&
  19. service cron reload