Commit 9698b6f2 authored by Natanael Copa's avatar Natanael Copa

bugfixes in setup-web

parent 2b2d1dd3
......@@ -59,7 +59,7 @@ do_setup() {
/etc/init.d/syslog start
/etc/init.d/dhcpd start
FORCE_SETUP_WEBCONF=yes setup-webconf apk "$@"
FORCE_SETUP_WEBCONF=yes setup-webconf "$@"
# set up http listener/forwarder
mkdir -p /var/www/redirect
......
......@@ -67,7 +67,7 @@ if [ -f $PEMFILE ]; then
echo "$PEMFILE already exist."
else
mkdir -p $SSLDIR
cat <<EOF >$SSLCNF
cat >$SSLCNF <<EOF
[ req ]
default_bits = 1024
encrypt_key = yes
......@@ -92,7 +92,7 @@ EOF
mv $CRTFILE $PEMFILE
fi
cat <<EOF >/etc/mini_httpd.conf
cat >/etc/mini_httpd.conf <<EOF
nochroot
dir=/var/www/localhost/htdocs
user=nobody
......@@ -103,7 +103,7 @@ port=443
ssl
EOF
cat <<EOF >/etc/conf.d/mini_httpd
cat >/etc/conf.d/mini_httpd <<EOF
MINI_HTTPD_OPTS="-C /etc/mini_httpd.conf"
MINI_HTTPD_DOCROOT=/var/www/localhost/htdocs
EOF
......
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