From 0ba975e9fb6a7fb3ffb1f26e4acb44fb59a8a1aa Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 17 Dec 2018 23:09:54 +0100 Subject: [PATCH] new: [docker-host] don't use hostname anymore for DEFAULT_PROJECT_NAME (fallback to directory name). --- precise/host/hooks/install.d/70-0k.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 4491cea1..d9a18d5f 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/precise/host/hooks/install.d/70-0k.sh @@ -221,8 +221,10 @@ cat < /etc/default/compose ## if not provided, this will be the default service launched. export DEFAULT_SERVICES="" -export DEFAULT_PROJECT_NAME=\$(hostname | cut -f 2 -d . ) -DEFAULT_PROJECT_NAME=\${DEFAULT_PROJECT_NAME,,} ## to lowercase +## In new compose (running in docker) this is not yet really supported, +## and is it wanted ? +#export DEFAULT_PROJECT_NAME=$(hostname | cut -f 2 -d . ) +#DEFAULT_PROJECT_NAME=\${DEFAULT_PROJECT_NAME,,} ## to lowercase export DOCKER_DATASTORE=\$([ -e /etc/default/datastore ] && . /etc/default/datastore && echo \$DATASTORE) export DATASTORE=\$DOCKER_DATASTORE/data