Commit f1e30124 authored by Francesco Colista's avatar Francesco Colista

main/mini_httpd: runs with minihttpd user and www-data group

parent f85ee286
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mini_httpd
pkgver=1.21
pkgrel=0
pkgrel=1
pkgdesc="Small forking webserver with ssl and ipv6 support"
url="http://www.acme.com/software/mini_httpd/"
arch="all"
......
......@@ -11,7 +11,7 @@
#host=www.example.org
port=80
#port=443
user=nobody
user=minihttpd
##
## The DOCROOT
dir=/var/www/localhost/htdocs
......
......@@ -6,4 +6,10 @@ if [ -f /etc/mini_httpd.conf ] && ! [ -L /etc/mini_httpd.conf ]; then
mv /etc/mini_httpd.conf /etc/mini_httpd/mini_httpd.conf \
&& ln -s mini_httpd/mini_httpd.conf /etc/mini_httpd.conf
fi
addgroup -g 82 -S www-data 2>/dev/null
adduser -S -H -h /var/www/localhost/htdocs -s /sbin/nologin \
-D minihttpd 2>/dev/null
addgroup minihttpd www-data 2>/dev/null
exit 0
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