Use *_PATH consistently

GLOBAL_VHOST_PATH and GLOBAL_VHOST_FILE were used to represent the same
thing. Same for APP_URLS_PATH and APP_VHOST_PATH.

This normalizes all of those to _PATH.
This commit is contained in:
Hugo Peixoto
2020-07-16 05:40:56 +01:00
parent c66c85429e
commit 2160a8b64e
3 changed files with 15 additions and 15 deletions

View File

@@ -96,9 +96,9 @@ fn-domains-app-enabled() {
fn-domains-app-vhosts() {
declare APP="$1"
local APP_VHOST_FILE="$DOKKU_ROOT/$APP/VHOST"
if [[ -f "$APP_VHOST_FILE" ]]; then
tr '\n' ' ' <"$APP_VHOST_FILE"
local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
if [[ -f "$APP_VHOST_PATH" ]]; then
tr '\n' ' ' <"$APP_VHOST_PATH"
fi
}