您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

install 751B

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/apache2/conf-available/letsencrypt.conf &&
  13. a2enconf 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