From 52d6143d970f46f7109c1272ddae63c9be20b977 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 13 Dec 2017 15:39:42 -0500 Subject: [PATCH 1/2] fix: correct the guard around the config_export call in config_sub --- plugins/config/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/config/functions b/plugins/config/functions index 8b6f1df49..1460fb99a 100755 --- a/plugins/config/functions +++ b/plugins/config/functions @@ -26,7 +26,7 @@ config_export() { config_all() { declare desc="Backwards compatible function for plugin use" - if [[ -z "$DOKKU_CONFIG_EXPORT" ]]; then + if [[ -n "$DOKKU_CONFIG_EXPORT" ]]; then config_export "$@" return 0 fi From 5522cf63f717e02ff318ba8cbb491ddd069e1eb2 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 13 Dec 2017 15:46:53 -0500 Subject: [PATCH 2/2] fix: revert guard and pass app arg to config_export --- plugins/config/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/config/functions b/plugins/config/functions index 1460fb99a..6a36888a1 100755 --- a/plugins/config/functions +++ b/plugins/config/functions @@ -26,8 +26,8 @@ config_export() { config_all() { declare desc="Backwards compatible function for plugin use" - if [[ -n "$DOKKU_CONFIG_EXPORT" ]]; then - config_export "$@" + if [[ -z "$DOKKU_CONFIG_EXPORT" ]]; then + config_export app "$@" return 0 fi