Run command in Discourse's dir by default.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Tue, 18 Sep 2018 09:10:44 +0000 (17:10 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Tue, 18 Sep 2018 09:10:44 +0000 (17:10 +0800)
launcher

index 5b5d5dcb6e4ad4f725ba5d488192b6b18aee4d7c..684174b992ec5a21c7246445d5d470b30a48896f 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -593,7 +593,7 @@ run_run() {
   setup_bootstrap
 
   $docker_path run --rm --shm-size=512m $user_args $links "${env[@]}" -e DOCKER_HOST_IP="$docker_ip" -i -a stdin -a stdout -a stderr $volumes $image \
-    /bin/bash -c "$run_command"
+    /bin/bash --login -c "$run_command"
 }
 
 run_bootstrap() {