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.

31 lines
432 B

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