summaryrefslogtreecommitdiffstats
path: root/setup-webconf
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-05-21 14:01:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-05-21 14:01:23 +0000
commit4ade8ccfc6cb761adec205285f1866c8265e57e2 (patch)
tree859f9c96dfb088202b51bc57cdc0b6936486c3e7 /setup-webconf
parent70faa4b15c9fd02fc4f4c1595b53bf5adf34e4a4 (diff)
downloadalpine-conf-4ade8ccfc6cb761adec205285f1866c8265e57e2.tar.bz2
alpine-conf-4ade8ccfc6cb761adec205285f1866c8265e57e2.tar.xz
release 1.5. added setup-alpine-web
Diffstat (limited to 'setup-webconf')
-rw-r--r--setup-webconf36
1 files changed, 19 insertions, 17 deletions
diff --git a/setup-webconf b/setup-webconf
index aba6223..1776577 100644
--- a/setup-webconf
+++ b/setup-webconf
@@ -28,23 +28,24 @@ while [ $# -gt 0 ]; do
shift
done
-# issue warning so user knows what he is doing
-echo "!!!"
-echo "!!! WARNING !!! WARNING !!! WARNING !!!"
-echo "!!!"
-echo "!!! The webinterface is in alpha stage and will give *anyone* on the"
-echo "!!! network access to your box. The web interface is only for testing"
-echo "!!! purposes and should only be used in isolated secure networks."
-echo "!!!"
-echo "!!! Please send suggestions and patches to acf@lists.alpinelinux.org"
-echo "!!!"
-
-
-echon "Are you sure you want continue? (y/n) [n] "
-default_read imsure n
-if [ "$imsure" != y ]; then
- echo "Aborting."
- exit
+if [ "$FORCE_SETUP_WEBCONF" != yes ]; then
+ # issue warning so user knows what he is doing
+ echo "!!!"
+ echo "!!! WARNING !!! WARNING !!! WARNING !!!"
+ echo "!!!"
+ echo "!!! The webinterface is in alpha stage and will give *anyone* on the"
+ echo "!!! network access to your box. The web interface is only for testing"
+ echo "!!! purposes and should only be used in isolated secure networks."
+ echo "!!!"
+ echo "!!! Please send suggestions and patches to acf@lists.alpinelinux.org"
+ echo "!!!"
+
+ echon "Are you sure you want continue? (y/n) [n] "
+ default_read imsure n
+ if [ "$imsure" != y ]; then
+ echo "Aborting."
+ exit
+ fi
fi
# install packages
@@ -53,6 +54,7 @@ apk_add mini_httpd $pkgs || exit 1
# setup mini_httpd and start it
mkdir -p /var/www/localhost/
ln -s /usr/share/acf/www/ /var/www/localhost/htdocs
+lbu add /var/www/localhost/htdocs
SSLDIR=/etc/ssl/mini_httpd