#!/bin/bash ### CHECK function check() { PREFIX="recipe:discourse:check" container_exists "$CONTAINER" || return 1 container_running "$CONTAINER" || return 2 } ### INSTALL function install() { PREFIX="recipe:discourse:install" : $PREFIX launch_container "$CONTAINER" echo "initializing discourse ... " PREFIX="" echo "OK" } ### MAIN . "$MIAOU_BASEDIR/lib/init.sh" arg1_required "$@" readonly CONTAINER="$1" check || ( install check )