From 0c456e8c6f6a0edadb2dede88d6eba23b539de1c Mon Sep 17 00:00:00 2001 From: Erick Guan Date: Sat, 19 Mar 2016 10:10:02 +0100 Subject: [PATCH] FEATURE: change login directory to discourse home when enter a container --- launcher | 2 +- templates/web.template.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.25.1