provisioning tool for building opinionated architecture
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
484 B

2 months ago
  1. #!/bin/bash
  2. ### CHECK
  3. function check() {
  4. PREFIX="recipe:discourse:check"
  5. container_exists "$CONTAINER" || return 1
  6. container_running "$CONTAINER" || return 2
  7. }
  8. ### INSTALL
  9. function install() {
  10. PREFIX="recipe:discourse:install"
  11. : $PREFIX
  12. launch_container "$CONTAINER"
  13. echo "initializing discourse ... "
  14. PREFIX="" echo "OK"
  15. }
  16. ### MAIN
  17. . "$MIAOU_BASEDIR/lib/init.sh"
  18. arg1_required "$@"
  19. readonly CONTAINER="$1"
  20. check || (
  21. install
  22. check
  23. )