postinstall.sh 492 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. #
  3. # packager.io postinstall script
  4. #
  5. PATH=/opt/zammad/bin:/opt/zammad/vendor/bundle/bin:/sbin:/bin:/usr/sbin:/usr/bin:
  6. # import config
  7. . /opt/zammad/contrib/packager.io/config
  8. # import functions
  9. . /opt/zammad/contrib/packager.io/functions
  10. # exec postinstall
  11. debug
  12. detect_os
  13. detect_docker
  14. detect_initcmd
  15. detect_database
  16. detect_webserver
  17. enforce_redis
  18. create_initscripts
  19. stop_zammad
  20. update_or_install
  21. set_env_vars
  22. start_zammad
  23. create_webserver_config
  24. final_message