From: Erick Guan Date: Sat, 19 Mar 2016 09:10:02 +0000 (+0100) Subject: FEATURE: change login directory to discourse home when enter a container X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0c456e8c6f6a0edadb2dede88d6eba23b539de1c;p=discourse_docker.git FEATURE: change login directory to discourse home when enter a container --- diff --git a/launcher b/launcher index 74feb7e..8f412f9 100755 --- a/launcher +++ b/launcher @@ -576,7 +576,7 @@ case "$command" in ;; enter) - exec $docker_path exec -it $config /bin/bash + exec $docker_path exec -it $config /bin/bash --login ;; ssh) diff --git a/templates/web.template.yml b/templates/web.template.yml index 5fbe434..bfd06ce 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -247,3 +247,10 @@ run: mkdir -p /shared/backups chown -R discourse:www-data /shared/backups fi + + # change login directory to Discourse home + - file: + path: /root/.bash_profile + chmod: 644 + contents: | + cd $home