From f72ab68a319f98ebddd5e46f919d61f016973bd0 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 25 Apr 2016 18:04:34 +0800 Subject: [PATCH] FIX: config_file check was broken. --- launcher | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher b/launcher index 5241363..7729074 100755 --- a/launcher +++ b/launcher @@ -389,7 +389,7 @@ fi usage } -if [[ ! -e $config_file && $command -ne "memconfig" ]] +if [[ ! -e $config_file ]] then echo "Config file was not found, ensure $config_file exists" echo @@ -466,7 +466,7 @@ scale_ram_and_cpu() { fi fi db_shared_buffers=$(( db_shared_buffers < 4096 ? db_shared_buffers : 4096 )) - + sed -i -e "s/^ #db_shared_buffers:.*/ db_shared_buffers: \"${db_shared_buffers}MB\"/w $changelog" $config_file if [ -s $changelog ] then @@ -483,7 +483,7 @@ scale_ram_and_cpu() { unicorn_workers=$(( 2 * $avail_cores )) fi unicorn_workers=$(( unicorn_workers < 8 ? unicorn_workers : 8 )) - + sed -i -e "s/^ #UNICORN_WORKERS:.*/ UNICORN_WORKERS: ${unicorn_workers}/w $changelog" $config_file if [ -s $changelog ] then -- 2.25.1