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 775B

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