diff options
author | tv <tv@krebsco.de> | 2017-03-16 21:04:38 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-04-13 16:27:04 +0200 |
commit | 1e2482d4b5d8845fb92b28b6edd1836fd7a651c0 (patch) | |
tree | a9ca7f0ebbb8d84200dd1cd8afa2f91776d0fde6 | |
parent | 6b8f164fc8a5858c7d2a77a5719c429b7986e00c (diff) |
-rwxr-xr-x | htgen | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |