Commit 45aaa484 authored by Natanael Copa's avatar Natanael Copa

release 1.7.

support for setup-webconf -l to specify listen address for web server
parent a74bb7dd
V=1.6.1
V=1.7
P=alpine-conf
PV=$(P)-$(V)
APKF=$(PV).apk
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment