postinstall.sh 477 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. create_initscripts
  18. stop_zammad
  19. update_or_install
  20. set_env_vars
  21. start_zammad
  22. create_webserver_config
  23. final_message