move config script last in chain so it wins
[discourse_docker.git] / launcher
index 32eedc6be1a8ac8ff65fac788d41532349777825..040e59cc12c3fa11842fd7302b8d7fe6a633759c 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -67,8 +67,8 @@ case "$command" in
         "require 'yaml'; puts YAML.load(STDIN.readlines.join)['templates']"`
 
       arrTemplates=(${templates// / })
-      input=$(cat $config_file)
-
+      config=$(cat $config_file)
+      input="hack: true"
 
       for template in "${arrTemplates[@]}"
       do
@@ -77,6 +77,9 @@ case "$command" in
         }
       done
 
+      # we always want our config file last so it takes priority
+      input="$input _FILE_SEPERATOR_ $config"
+
       set_volumes
 
       rm -f $cidbootstrap