diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-08-28 14:37:20 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-08-28 14:37:20 +0000 |
commit | 45aaa48404d4d7a5d653c6c8012bf0dba5178bfd (patch) | |
tree | 3d6a8ccfea0433c96470ba67213a17823263aff0 /setup-webconf | |
parent | a74bb7dd0670414a8cfd7262038435d5f7209024 (diff) | |
download | alpine-conf-45aaa48404d4d7a5d653c6c8012bf0dba5178bfd.zip |
release 1.7.
support for setup-webconf -l to specify listen address for web server
Diffstat (limited to 'setup-webconf')
-rw-r--r-- | setup-webconf | 8 |
1 files changed, 6 insertions, 2 deletions
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 <<EOF MINI_HTTPD_OPTS="-C /etc/mini_httpd.conf" |