From 441e669b8842067334475fe3ed8c0dfda9132641 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 12 Dec 2018 11:17:02 +0100 Subject: [PATCH] fix: [docker-host] default project name wouldn't have dynamic resolution and would not be lowercase ``docker-compose`` doesn't like lowercase for project name. --- precise/host/hooks/install.d/70-0k.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index f83880fe..89c265f0 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/precise/host/hooks/install.d/70-0k.sh @@ -197,7 +197,8 @@ 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 . ) +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