fix: use correct path for /etc/default file

/etc/defaults was an invalid path.
This commit is contained in:
Jose Diaz-Gonzalez
2018-04-01 17:48:06 -04:00
parent db5b077354
commit c352f463f7
4 changed files with 8 additions and 8 deletions

View File

@@ -2,9 +2,9 @@
set -eo pipefail
shopt -s nullglob
if [[ -r /etc/defaults/dokku ]]; then
if [[ -r /etc/default/dokku ]]; then
# shellcheck disable=SC1091
source /etc/defaults/dokku
source /etc/default/dokku
fi
export DOKKU_ROOT=${DOKKU_ROOT:=~dokku}

4
debian/postinst vendored
View File

@@ -6,9 +6,9 @@ if [[ -e /usr/share/debconf/confmodule ]]; then
. /usr/share/debconf/confmodule
fi
if [[ -r /etc/defaults/dokku ]]; then
if [[ -r /etc/default/dokku ]]; then
# shellcheck disable=SC1091
source /etc/defaults/dokku
source /etc/default/dokku
fi
readonly DOKKU_ROOT="${DOKKU_ROOT:-/home/dokku}"

4
dokku
View File

@@ -2,9 +2,9 @@
set -eo pipefail
shopt -s nullglob
if [[ -r /etc/defaults/dokku ]]; then
if [[ -r /etc/default/dokku ]]; then
# shellcheck disable=SC1091
source /etc/defaults/dokku
source /etc/default/dokku
fi
export DOKKU_ROOT=${DOKKU_ROOT:=~dokku}

View File

@@ -50,9 +50,9 @@ setup-version() {
}
main() {
if [[ -r /etc/defaults/dokku ]]; then
if [[ -r /etc/default/dokku ]]; then
# shellcheck disable=SC1091
source /etc/defaults/dokku
source /etc/default/dokku
fi
readonly DOKKU_ROOT="${DOKKU_ROOT:-/home/dokku}"