From ab0d871347eca9ac0badf6e7977bec1be5d7c7dd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 7 Feb 2023 16:09:41 -0500 Subject: [PATCH] docs: add example for multiple networks --- README.md | 6 ++++++ subcommands/set | 2 ++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 13cbe51..23f452c 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,12 @@ Set the network to attach after the service container is started: dokku redis:set lollipop post-create-network custom-network ``` +Set multiple networks: + +```shell +dokku redis:set lollipop post-create-network custom-network,other-network +``` + Unset the post-create-network value: ```shell diff --git a/subcommands/set b/subcommands/set index 656bbb1..260c918 100755 --- a/subcommands/set +++ b/subcommands/set @@ -9,6 +9,8 @@ source "$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)/common-functi service-set-cmd() { #E set the network to attach after the service container is started #E dokku $PLUGIN_COMMAND_PREFIX:set lollipop post-create-network custom-network + #E set multiple networks + #E dokku $PLUGIN_COMMAND_PREFIX:set lollipop post-create-network custom-network,other-network #E unset the post-create-network value #E dokku $PLUGIN_COMMAND_PREFIX:set lollipop post-create-network #A service, service to run command against