diff --git a/plugins/00_dokku-standard/commands b/plugins/00_dokku-standard/commands index 8e4c36cb9..962f6f3fa 100755 --- a/plugins/00_dokku-standard/commands +++ b/plugins/00_dokku-standard/commands @@ -8,13 +8,13 @@ case "$1" in logs) if [[ -z $2 ]]; then - echo "Please specify an app to run the command on" - exit 1 + echo "Please specify an app to run the command on" + exit 1 fi APP="$2"; if [[ ! -d "$DOKKU_ROOT/$APP" ]]; then - echo "App $APP does not exist" - exit 1 + echo "App $APP does not exist" + exit 1 fi if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then @@ -55,7 +55,7 @@ case "$1" in if [[ -f "$DOKKU_ROOT/$APP/URL" ]]; then echo $(< "$DOKKU_ROOT/$APP/URL") fi - ;; + ;; version) cat "$DOKKU_ROOT/VERSION" || { diff --git a/plugins/config/commands b/plugins/config/commands index 5fccdc83e..1247b9cce 100755 --- a/plugins/config/commands +++ b/plugins/config/commands @@ -94,7 +94,7 @@ case "$1" in echo "=== $APP config vars ===" config_styled_hash "$VARS" - ;; + ;; config:get) if [[ -z $3 ]]; then @@ -110,7 +110,7 @@ case "$1" in KEY="$3" cat $ENV_FILE | grep -Eo "export ([a-zA-Z_][a-zA-Z0-9_]*=.*)" | grep "^export $KEY=" | cut -d"=" -f2- | sed -e "s/^'//" -e "s/'$//" - ;; + ;; config:set) if [[ -z "${*:3}" ]]; then @@ -154,7 +154,7 @@ ${var}" config_write "$ENV_TEMP" fi - ;; + ;; config:unset) if [[ -z $3 ]]; then @@ -173,7 +173,7 @@ ${var}" config_write "$ENV_TEMP" done - ;; + ;; help | config:help) cat && cat< KEY1=VALUE1 [KEY2=VALUE2 ...] Set one or more config vars config:unset KEY1 [KEY2 ...] Unset one or more config vars EOF - ;; + ;; esac diff --git a/plugins/nginx-vhosts/commands b/plugins/nginx-vhosts/commands index 786bcd6a6..b705ca39d 100755 --- a/plugins/nginx-vhosts/commands +++ b/plugins/nginx-vhosts/commands @@ -34,8 +34,9 @@ case "$1" in mv "$TEMP_DIR/server.key" "$DOKKU_ROOT/$APP/tls/server.key" rm -rf $TEMP_DIR ;; + help | nginx:help) - cat && cat< Imports a tarball from stdin; should contain server.crt and server.key EOF ;;