docs: fix the variable reference for plugins where the alias does not match the variable

Closes dokku/dokku-postgres#199
This commit is contained in:
Jose Diaz-Gonzalez
2021-09-12 22:55:01 -04:00
parent e9e9c444df
commit 6a55fc4474
2 changed files with 17 additions and 17 deletions

View File

@@ -18,14 +18,14 @@ sudo dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo
``` ```
mongo:app-links <app> # list all mongo service links for a given app mongo:app-links <app> # list all mongo service links for a given app
mongo:backup <service> <bucket-name> [--use-iam] # creates a backup of the mongo service to an existing s3 bucket mongo:backup <service> <bucket-name> [--use-iam] # create a backup of the mongo service to an existing s3 bucket
mongo:backup-auth <service> <aws-access-key-id> <aws-secret-access-key> <aws-default-region> <aws-signature-version> <endpoint-url> # sets up authentication for backups on the mongo service mongo:backup-auth <service> <aws-access-key-id> <aws-secret-access-key> <aws-default-region> <aws-signature-version> <endpoint-url> # set up authentication for backups on the mongo service
mongo:backup-deauth <service> # removes backup authentication for the mongo service mongo:backup-deauth <service> # remove backup authentication for the mongo service
mongo:backup-schedule <service> <schedule> <bucket-name> [--use-iam] # schedules a backup of the mongo service mongo:backup-schedule <service> <schedule> <bucket-name> [--use-iam] # schedule a backup of the mongo service
mongo:backup-schedule-cat <service> # cat the contents of the configured backup cronfile for the service mongo:backup-schedule-cat <service> # cat the contents of the configured backup cronfile for the service
mongo:backup-set-encryption <service> <passphrase> # sets encryption for all future backups of mongo service mongo:backup-set-encryption <service> <passphrase> # set encryption for all future backups of mongo service
mongo:backup-unschedule <service> # unschedules the backup of the mongo service mongo:backup-unschedule <service> # unschedule the backup of the mongo service
mongo:backup-unset-encryption <service> # unsets encryption for future backups of the mongo service mongo:backup-unset-encryption <service> # unset encryption for future backups of the mongo service
mongo:clone <service> <new-service> [--clone-flags...] # create container <new-name> then copy data from <name> into <new-name> mongo:clone <service> <new-service> [--clone-flags...] # create container <new-name> then copy data from <name> into <new-name>
mongo:connect <service> # connect to the service via the mongo connection tool mongo:connect <service> # connect to the service via the mongo connection tool
mongo:connect-admin <service> # connect via mongo to a mongo service as admin user mongo:connect-admin <service> # connect via mongo to a mongo service as admin user
@@ -523,7 +523,7 @@ You may skip the `backup-auth` step if your dokku install is running within EC2
Backups can be performed using the backup commands: Backups can be performed using the backup commands:
### sets up authentication for backups on the mongo service ### set up authentication for backups on the mongo service
```shell ```shell
# usage # usage
@@ -554,7 +554,7 @@ More specific example for minio auth:
dokku mongo:backup-auth lolipop MINIO_ACCESS_KEY_ID MINIO_SECRET_ACCESS_KEY us-east-1 s3v4 https://YOURMINIOSERVICE dokku mongo:backup-auth lolipop MINIO_ACCESS_KEY_ID MINIO_SECRET_ACCESS_KEY us-east-1 s3v4 https://YOURMINIOSERVICE
``` ```
### removes backup authentication for the mongo service ### remove backup authentication for the mongo service
```shell ```shell
# usage # usage
@@ -567,7 +567,7 @@ Remove s3 authentication:
dokku mongo:backup-deauth lolipop dokku mongo:backup-deauth lolipop
``` ```
### creates a backup of the mongo service to an existing s3 bucket ### create a backup of the mongo service to an existing s3 bucket
```shell ```shell
# usage # usage
@@ -590,7 +590,7 @@ Restore a backup file (assuming it was extracted via `tar -xf backup.tgz`):
dokku mongo:import lolipop < backup-folder/export dokku mongo:import lolipop < backup-folder/export
``` ```
### sets encryption for all future backups of mongo service ### set encryption for all future backups of mongo service
```shell ```shell
# usage # usage
@@ -603,7 +603,7 @@ Set the GPG-compatible passphrase for encrypting backups for backups:
dokku mongo:backup-set-encryption lolipop dokku mongo:backup-set-encryption lolipop
``` ```
### unsets encryption for future backups of the mongo service ### unset encryption for future backups of the mongo service
```shell ```shell
# usage # usage
@@ -616,7 +616,7 @@ Unset the `GPG` encryption passphrase for backups:
dokku mongo:backup-unset-encryption lolipop dokku mongo:backup-unset-encryption lolipop
``` ```
### schedules a backup of the mongo service ### schedule a backup of the mongo service
```shell ```shell
# usage # usage
@@ -654,7 +654,7 @@ Cat the contents of the configured backup cronfile for the service:
dokku mongo:backup-schedule-cat lolipop dokku mongo:backup-schedule-cat lolipop
``` ```
### unschedules the backup of the mongo service ### unschedule the backup of the mongo service
```shell ```shell
# usage # usage

View File

@@ -10,12 +10,12 @@ service-create-cmd() {
#E dokku $PLUGIN_COMMAND_PREFIX:create lolipop #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop
#E you can also specify the image and image version to use for the service. #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 it *must* be compatible with the ${PLUGIN_IMAGE} image.
#E export ${PLUGIN_DEFAULT_ALIAS}_IMAGE="${PLUGIN_IMAGE}" #E export ${PLUGIN_VARIABLE}_IMAGE="${PLUGIN_IMAGE}"
#E export ${PLUGIN_DEFAULT_ALIAS}_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" #E export ${PLUGIN_VARIABLE}_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}"
#E dokku $PLUGIN_COMMAND_PREFIX:create lolipop #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop
#E you can also specify custom environment variables to start #E you can also specify custom environment variables to start
#E the ${PLUGIN_COMMAND_PREFIX} service in semi-colon separated form. #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 #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop
#A service, service to run command against #A service, service to run command against
#F -c|--config-options "--args --go=here", extra arguments to pass to the container create command #F -c|--config-options "--args --go=here", extra arguments to pass to the container create command