From db94fe1a21d5e852c4fdf8d63740f4ce1982aa28 Mon Sep 17 00:00:00 2001 From: Oscar Rydh Date: Wed, 22 Mar 2017 16:42:15 +0100 Subject: [PATCH] Fixa en bugg med relative path i startup/init.sh --- startup/init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/startup/init.sh b/startup/init.sh index f93748f..8039324 100644 --- a/startup/init.sh +++ b/startup/init.sh @@ -1,9 +1,10 @@ #!/bin/bash + SCRIPT_DIR=.. SCRIPT_NAME="$SCRIPT_DIR/twitter_stream.py" PID_DIR=./PID_DIR - +cd "$(dirname "$0")" #Start the data mining, specify the filter(s) as arguments. OBS Twitter seems to be using some throtteling. #I could only get 2 filters running at the same time. We need to implement user authentication to get more running. start() {