IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

34 řádky
1.2KB

  1. base: freebsd-latest
  2. steps:
  3. - run:
  4. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install python3 nginx py37-cookiecutter
  5. - copy:
  6. - [ ../files/cookiecutter.json,
  7. /root/cookiecutter.json ]
  8. - [ files/nginx.conf,
  9. /root/nginx.conf ]
  10. - [ ../files/crontab_root,
  11. /root/crontab_root ]
  12. - run:
  13. - mkdir -p /root/nginx_template/\{\{cookiecutter.directory_name\}\}
  14. - mv -v /root/nginx.conf /root/nginx_template/\{\{cookiecutter.directory_name\}\}/nginx.conf
  15. - mv -v /root/cookiecutter.json /root/nginx_template/cookiecutter.json
  16. - run:
  17. - cookiecutter --no-input /root/nginx_template
  18. - mv -v ./nginx_conf/nginx.conf /usr/local/etc/nginx/nginx.conf
  19. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg remove python3 py37-cookiecutter
  20. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg autoremove
  21. - rm -rvf /root/nginx_template
  22. - rm -rvf ./nginx_conf
  23. - mkdir -p /certbot/webroot
  24. - run:
  25. - sysrc nginx_enable=YES
  26. - crontab -u root /root/crontab_root
  27. - rm -v /root/crontab_root
  28. - run:
  29. - sysrc sshd_enable=NO
  30. - sysrc sendmail_enable=NONE
  31. - sysrc clear_tmp_enable=YES
  32. - sysrc syslogd_flags="-ss"