From 55e2de5dfffbd7b63b2cb1175458f126defbb1f3 Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Wed, 20 Apr 2016 13:24:40 -0500 Subject: [PATCH] Remove dependency on standalone.template & fix replacement --- launcher | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher b/launcher index 2cb8799..cb0bef0 100755 --- a/launcher +++ b/launcher @@ -24,7 +24,7 @@ cidbootstrap=cids/"$config"_bootstrap.cid local_discourse=local_discourse image=discourse/discourse:1.0.17 docker_path=`which docker.io || which docker` -template_path=samples/standalone_template.yml +template_path=samples/standalone.yml changelog=/tmp/changelog # used to test whether sed did anything if [ "${SUPERVISED}" = "true" ]; then @@ -492,7 +492,7 @@ run_memconfig(){ db_shared_buffers=`expr $avail_gb \* 256` fi echo -e "Setting db_shared_buffers to ${db_shared_buffers}GB\c" - sed -i -e "s/^# db_shared_buffers:.*/ db_shared_buffers: \"${db_shared_buffers}GB\"/w $changelog" $config_file + sed -i -e "s/^ #db_shared_buffers:.*/ db_shared_buffers: \"${db_shared_buffers}GB\"/w $changelog" $config_file if [ -s $changelog ] then echo " successfully." @@ -510,7 +510,7 @@ run_memconfig(){ fi echo -e "Setting UNICORN_WORKERS to $unicorn_workers\c" - sed -i -e "s/^# UNICORN_WORKERS:.*/ UNICORN_WORKERS: ${unicorn_workers}/w $changelog" $config_file + sed -i -e "s/^ #UNICORN_WORKERS:.*/ UNICORN_WORKERS: ${unicorn_workers}/w $changelog" $config_file if [ -s $changelog ] then echo " successfully." -- 2.25.1