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.
 
 

35 lines
542 B

#!/bin/bash
### CHECK
function check() {
PREFIX="recipe:discourse:check"
container_exists "$CONTAINER" || return 1
container_running "$CONTAINER" || return 2
echo "container <$CONTAINER> approved successfully!"
}
### 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
)