summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-03-16 21:04:38 +0100
committertv <tv@krebsco.de>2017-04-13 16:27:04 +0200
commit1e2482d4b5d8845fb92b28b6edd1836fd7a651c0 (patch)
treea9ca7f0ebbb8d84200dd1cd8afa2f91776d0fde6
parent6b8f164fc8a5858c7d2a77a5719c429b7986e00c (diff)
add HTGEN_SCRIPTv1.11.1
-rwxr-xr-xhtgen10
1 files changed, 5 insertions, 5 deletions
diff --git a/htgen b/htgen
index 303d023..725332e 100755
--- a/htgen
+++ b/htgen
@@ -9,13 +9,12 @@ case $# in
(1)
case "$1" in
(--serve)
- HTGEN_HOST="${HTGEN_HOST-0.0.0.0}"
- HTGEN_PORT="${HTGEN_PORT-42380}"
+ HTGEN_HOST=${HTGEN_HOST-0.0.0.0}
+ HTGEN_PORT=${HTGEN_PORT-42380}
+ HTGEN_SCRIPT=${HTGEN_SCRIPT-:}
TCPSERVER_OPTS='-c 423 -t 2 -D'
echo "#### $Server $HTGEN_HOST:$HTGEN_PORT" >&2
exec tcpserver $TCPSERVER_OPTS "$HTGEN_HOST" "$HTGEN_PORT" "$0"
- ## this should not happen...
- exit 23
esac
esac
## }}}
@@ -93,5 +92,6 @@ unset k v
echo >&2
## }}}
+eval "$HTGEN_SCRIPT"
+
reply_404
-exit