aboutsummaryrefslogtreecommitdiffstats
path: root/main/mini_httpd/mini_httpd.pre-install
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-07-22 13:42:22 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-07-22 13:42:27 +0000
commitf1e30124267714748882756a524c3add80b3bfa5 (patch)
treea545c9876a5eba7ccd62507e53eecbcf6e07280f /main/mini_httpd/mini_httpd.pre-install
parentf85ee286dbd43e3208e518671a2807e77fb45630 (diff)
downloadaports-f1e30124267714748882756a524c3add80b3bfa5.tar.bz2
aports-f1e30124267714748882756a524c3add80b3bfa5.tar.xz
main/mini_httpd: runs with minihttpd user and www-data group
Diffstat (limited to 'main/mini_httpd/mini_httpd.pre-install')
-rw-r--r--main/mini_httpd/mini_httpd.pre-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/mini_httpd/mini_httpd.pre-install b/main/mini_httpd/mini_httpd.pre-install
index 6f8eaae18..d84f0b771 100644
--- a/main/mini_httpd/mini_httpd.pre-install
+++ b/main/mini_httpd/mini_httpd.pre-install
@@ -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