FEATURE: change login directory to discourse home when enter a container
[discourse_docker.git] / templates / web.template.yml
index 5fbe43495b8c227bb8c092928e15ffeb211dfa46..bfd06ce637d0fc6fd6d6dd28aebbc37c8ff7302d 100644 (file)
@@ -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