From e070b94b4ef250d7c9fdc7e3b7c8cd289428d4dc Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Mon, 2 Apr 2018 13:10:21 +0900 Subject: [PATCH] =?UTF-8?q?-=20Maybe=20a=20fix=20for=20a=20very=20weird=20?= =?UTF-8?q?bash=20behaviour=E2=80=A6=20see:=20http://pastebin.lu/ovilikeso?= =?UTF-8?q?s.bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start_all.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/start_all.sh b/start_all.sh index 6473228..776f186 100755 --- a/start_all.sh +++ b/start_all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -x @@ -9,6 +9,7 @@ RED="\\033[1;31m" # Getting CWD where bash script resides DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DASH_HOME=${DIR} if [ -e "${DIR}/DASHENV/bin/python" ]; then echo "dashboard virtualenv seems to exist, good" @@ -24,7 +25,7 @@ if [ ! -e "${redis_dir}" ]; then redis_dir="" fi -check_redis_port=$(netstat -an |grep LISTEN |grep 6250 |grep -v tcp6) +check_redis_port="$(netstat -an |grep LISTEN |grep 6250 |grep -v tcp6)" # Configure accordingly, remember: 0.0.0.0 exposes to every active IP interface, play safe and bind it to something you trust and know export FLASK_APP=server.py