diff --git a/start-socat.sh b/start-socat.sh index f6b0051..80e93e6 100644 --- a/start-socat.sh +++ b/start-socat.sh @@ -8,6 +8,8 @@ This is free software, and you are welcome to redistribute it under certain cond ' . $DIR/config.sh +if [ "$suuser" = "" ]; then suuser="$USER"; fi + echo "Listening at Port $PORT" if [ "$1" = "-d" -o "$1" = "--daemon" ]; then setsid socat TCP-LISTEN:$PORT,reuseaddr,su="$suuser",fork SYSTEM:"./main.sh" > /dev/null 2>&1 &