mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
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.
This commit is contained in:
committed by
Jose Diaz-Gonzalez
parent
42a1363996
commit
ee5c35dd9d
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user