Merge pull request #6572 from wangp/darkhttpd

darkhttpd: fix service, read from conf file
This commit is contained in:
maxice8 2019-02-07 15:10:34 -02:00 committed by GitHub
commit 46d78d9072
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1,2 +1,4 @@
#!/bin/sh #!/bin/sh
exec darkhttpd /srv/www/darkhttpd --chroot --uid _darkhttpd --gid _darkhttpd --no-server-id &>/var/log/darkhttpd/darkhttpd.log [ -r conf ] && . ./conf
: ${WWWDIR:=/srv/www/darkhttpd}
exec darkhttpd "${WWWDIR}" --chroot --uid _darkhttpd --gid _darkhttpd $OPTS 2>&1 >>/var/log/darkhttpd/darkhttpd.log

View file

@ -1,7 +1,7 @@
# Template file for 'darkhttpd' # Template file for 'darkhttpd'
pkgname=darkhttpd pkgname=darkhttpd
version=1.12 version=1.12
revision=2 revision=3
short_desc="Small and secure static webserver" short_desc="Small and secure static webserver"
maintainer="Andrea Brancaleoni <abc@pompel.me>" maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="ISC" license="ISC"