Run command in Discourse's dir by default.

Run command in Discourse’s dir by default.

From 4535fb546081817f0a2ffdd9cc587191b46e4a5f Mon Sep 17 00:00:00 2001
From: Guo Xiang Tan <tgx_world@hotmail.com>
Date: Tue, 18 Sep 2018 17:10:44 +0800
Subject: [PATCH] Run command in Discourse's dir by default.


diff --git a/launcher b/launcher
index 5b5d5dc..684174b 100755
--- 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() {

GitHub

2 Likes