From 7a17f22d6c6f4eef70c36a202a889af376e4826b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 12 Sep 2021 22:55:02 -0400 Subject: [PATCH] docs: fix the variable reference for plugins where the alias does not match the variable Closes dokku/dokku-postgres#199 --- README.md | 6 +++--- subcommands/create | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d179861..5fc6027 100644 --- a/README.md +++ b/README.md @@ -82,15 +82,15 @@ dokku postgres:create lolipop You can also specify the image and image version to use for the service. It *must* be compatible with the postgres image. ```shell -export DATABASE_IMAGE="postgres" -export DATABASE_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" +export POSTGRES_IMAGE="postgres" +export POSTGRES_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" dokku postgres:create lolipop ``` You can also specify custom environment variables to start the postgres service in semi-colon separated form. ```shell -export DATABASE_CUSTOM_ENV="USER=alpha;HOST=beta" +export POSTGRES_CUSTOM_ENV="USER=alpha;HOST=beta" dokku postgres:create lolipop ``` diff --git a/subcommands/create b/subcommands/create index 187f6ad..29d26e8 100755 --- a/subcommands/create +++ b/subcommands/create @@ -10,12 +10,12 @@ service-create-cmd() { #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop #E you can also specify the image and image version to use for the service. #E it *must* be compatible with the ${PLUGIN_IMAGE} image. - #E export ${PLUGIN_DEFAULT_ALIAS}_IMAGE="${PLUGIN_IMAGE}" - #E export ${PLUGIN_DEFAULT_ALIAS}_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" + #E export ${PLUGIN_VARIABLE}_IMAGE="${PLUGIN_IMAGE}" + #E export ${PLUGIN_VARIABLE}_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop #E you can also specify custom environment variables to start #E the ${PLUGIN_COMMAND_PREFIX} service in semi-colon separated form. - #E export ${PLUGIN_DEFAULT_ALIAS}_CUSTOM_ENV="USER=alpha;HOST=beta" + #E export ${PLUGIN_VARIABLE}_CUSTOM_ENV="USER=alpha;HOST=beta" #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop #A service, service to run command against #F -c|--config-options "--args --go=here", extra arguments to pass to the container create command