summaryrefslogtreecommitdiff
path: root/setup-webconf
diff options
context:
space:
mode:
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