Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

install 867B

123456789101112131415161718192021222324252627282930313233343536
  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-"${type}"-enable "${hook}"
  17. done
  18. done &&
  19. cp "${dir}/bash/sitegen.completion" /etc/bash_completion.d/sitegen &&
  20. cp "${dir}/apache/sitegen.conf" /etc/apache2/conf-available/sitegen.conf &&
  21. a2enconf sitegen &&
  22. service apache2 reload &&
  23. if [ ! -e /etc/cron.d/sitegen-cert-renew ]
  24. then
  25. rm -f /etc/cron.d/cert-renew &&
  26. cp "${dir}/cron/sitegen-cert-renew" /etc/cron.d/sitegen-cert-renew
  27. fi &&
  28. service cron reload