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
33 lines
484 B
#!/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
|
|
)
|