1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Update start-socat.sh

This commit is contained in:
niansa 2018-01-06 16:13:01 +01:00 committed by GitHub
parent 397bfab594
commit 05b9e20025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,11 @@ This program comes with ABSOLUTELY NO WARRANTY; for details read "'"$(pwd)/LICEN
This is free software, and you are welcome to redistribute it under certain conditions; read "'"$(pwd)/LICENSE"'" for details.
'
test -f ./config.sh || (echo "Configuration file missing!!!" ; exit 1)
if [ -f ./config.sh ]; then
echo "Configuration file missing!!!"
exit 1
fi
. ./config.sh
echo "Listening at Port $PORT"
if [ "$1" = "-d" -o "$1" = "--daemon" ]; then