From 318799b0aaf5ce4b335400932bc3bf6458f9c088 Mon Sep 17 00:00:00 2001 From: niansa Date: Sun, 13 May 2018 09:47:29 +0200 Subject: [PATCH] Update start-socat.sh --- start-socat.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start-socat.sh b/start-socat.sh index 7c7ee57..01b5d46 100644 --- a/start-socat.sh +++ b/start-socat.sh @@ -1,11 +1,13 @@ #! /bin/bash +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + echo 'simpsh-httpd Copyright (C) 2018 niansa This program comes with ABSOLUTELY NO WARRANTY; for details read "'"$(pwd)/LICENSE.md"'". This is free software, and you are welcome to redistribute it under certain conditions; read "'"$(pwd)/LICENSE.md"'" for details. ' -. ./config.sh +. $DIR/config.sh echo "Listening at Port $PORT" if [ "$1" = "-d" -o "$1" = "--daemon" ]; then setsid socat TCP-LISTEN:$PORT,reuseaddr,fork SYSTEM:"./main.sh" > /dev/null 2>&1 &