Browse Source

new: [docker-host] don't use hostname anymore for DEFAULT_PROJECT_NAME (fallback to directory name).

framadate
Valentin Lab 6 years ago
parent
commit
0ba975e9fb
  1. 6
      precise/host/hooks/install.d/70-0k.sh

6
precise/host/hooks/install.d/70-0k.sh

@ -221,8 +221,10 @@ cat <<EOF > /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

Loading…
Cancel
Save