From ee5c35dd9dab500bbf0457ffacbadec4ef59ac4a Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Tue, 25 Nov 2014 13:19:00 -0600 Subject: [PATCH] do not output message when creating ENV file This fixes a bug introduced when deploying apps where the nginx-vhosts plugin runs ``dokku config:get $APP NO_VHOST``. The initial run of this actually was creating the ``ENV`` file and dumping to stdout the value "NO_VHOST=-----> Creating /home/dokku/foo/ENV". This was obviously no good because nginx-vhosts was considering this to be a value of true. I've modified this to simply not return anything when the value does not exist. A better update may be to output the messages to stderr instead of stdout. --- plugins/config/commands | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/config/commands b/plugins/config/commands index 7592228ee..5eaa20c8c 100755 --- a/plugins/config/commands +++ b/plugins/config/commands @@ -5,7 +5,6 @@ ENV_FILE="$DOKKU_ROOT/$2/ENV" ENV_FILE_TEMP="$DOKKU_ROOT/$2/ENV.tmp" config_create () { [ -f $ENV_FILE ] || { - echo "-----> Creating $ENV_FILE" touch $ENV_FILE } }