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

install 939B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #! /usr/bin/env sh
  2. dir="$(dirname $(readlink -f "${0}"))"
  3. pip3 install -r "${dir}/requirements.txt" &&
  4. if [ ! -e /etc/sitegen ]
  5. then
  6. rm -f /etc/sitegen &&
  7. cp -r "${dir}/sitegen" /etc/sitegen
  8. fi &&
  9. cp "${dir}/sitegen.py" /usr/local/bin/sitegen &&
  10. for typedir in "${dir}"/sitegen/hooks-available/*
  11. do
  12. for hookfile in "${typedir}"/*
  13. do
  14. type=$(basename "${typedir}")
  15. hook=$(basename "${hookfile}")
  16. sitegen --hook-enable "${type}.${hook}"
  17. done
  18. done &&
  19. cp "${dir}/bash/sitegen.completion" /etc/bash_completion.d/sitegen &&
  20. a2disconf letsencrypt &&
  21. rm /etc/apache2/conf-available/sitegen.conf &&
  22. cp "${dir}/apache/sitegen.conf" /etc/apache2/conf-available/sitegen.conf &&
  23. a2enconf sitegen &&
  24. service apache2 reload &&
  25. if [ ! -e /etc/cron.d/sitegen-cert-renew ]
  26. then
  27. rm -f /etc/cron.d/cert-renew &&
  28. cp "${dir}/cron/sitegen-cert-renew" /etc/cron.d/sitegen-cert-renew &&
  29. service cron reload
  30. fi