add better logging to nginx migrate and fix indentation
This commit is contained in:
1 parent
d3c9e80fcb
commit
dc0404dbf1
1 file changed
+4
@@ -354,6 +354,9 @@ nginx_build_config() {
|
||||
# @TODO: Remove this after a few versions
|
||||
migrate_nginx_to_proxy() {
|
||||
declare desc="migrates DOKKU_NGINX_* to DOKKI_PROXY_*"
|
||||
dokku_log_info1 "Migrating DOKKU_NGINX env variables. The following variables will be migrated"
|
||||
dokku_log_info2 "DOKKU_NGINX_PORT -> DOKKU_PROXY_PORT"
|
||||
dokku_log_info2 "DOKKU_NGINX_SSL_PORT -> DOKKU_PROXY_SSL_PORT"
|
||||
for app in $(dokku_apps); do
|
||||
local nginx_port="$(config_get "$app" DOKKU_NGINX_PORT || true)"
|
||||
local nginx_ssl_port="$(config_get "$app" DOKKU_NGINX_SSL_PORT || true)"
|
||||
@@ -368,4 +371,5 @@ migrate_nginx_to_proxy() {
|
||||
config_unset --no-restart "$app" DOKKU_NGINX_SSL_PORT
|
||||
fi
|
||||
done
|
||||
dokku_log_info2 "Migration complete"
|
||||
}
|
||||
Reference in new issue
Block a user