From 45aaa48404d4d7a5d653c6c8012bf0dba5178bfd Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 28 Aug 2008 14:37:20 +0000 Subject: release 1.7. support for setup-webconf -l to specify listen address for web server --- Makefile | 2 +- setup-webconf | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5da4e81..6d68f29 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -V=1.6.1 +V=1.7 P=alpine-conf PV=$(P)-$(V) APKF=$(PV).apk diff --git a/setup-webconf b/setup-webconf index 798cdd5..fc34fca 100644 --- a/setup-webconf +++ b/setup-webconf @@ -7,17 +7,18 @@ PREFIX= . $PREFIX/lib/libalpine.sh usage() { - echo "$PROGRAM [-adh] [PACKAGE...]" + echo "$PROGRAM [-adh] [-l address] [PACKAGE...]" exit 0; } pkgs="acf-core acf-alpine-baselayout" -while getopts "adh" opt ; do +while getopts "adhl:" opt ; do case $opt in a) pkgs=`apk_fetch -l | grep ^acf-`;; d) pkgs="$pkgs acf-devtools";; h) usage;; + l) address="$OPTARG";; *) usage;; esac done @@ -102,6 +103,9 @@ certfile=$PEMFILE port=443 ssl EOF +if [ -n "$address" ]; then + echo "host=$address" >> /etc/mini_httpd.conf +fi cat >/etc/conf.d/mini_httpd <