blob: d37bb79e95898c31685d83ce39d4a146ec511bf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
# script to set up webconf
apk_add mini_httpd acf-alpine-baselayout
sed -i 's:MINI_HTTPD_OPTS=.*:MINI_HTTPD_OPTS="-C /etc/mini_httpd.conf":
s:#\?MINI_HTTPD_DOCROOT=.*:MINI_HTTPD_DOCROOT=/var/lib/acf/www:
' /etc/conf.d/mini_httpd
cat - > /etc/mini_httpd.conf <<EOF
nochroot
dir=/var/lib/acf/www
user=nobody
logfile=/var/log/mini_httpd.log
cgipat=cgi-bin**
EOF
rc_add mini_httpd
/etc/init.d/mini_httpd start
|