Archived
1
0
Fork 0
This repository has been archived on 2024-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
dockerfiles/tinywebdav/assets/entrypoint.sh
Joerg Elfring 9e66475149 init
2017-12-09 16:46:17 +01:00

16 lines
475 B
Bash

#!/bin/sh
## Startng cat to dump the accesslogpipe to stdout
cat <> /var/run/lighttpd/logpipe 1>&2 &
chown lighttpd:lighttpd /var/run/lighttpd/logpipe
## Create the "secret" directory
## And set in the config
mkdir /var/www/localhost/htdocs/$TOKEN
chown lighttpd:lighttpd /var/www/localhost/htdocs/$TOKEN
sed -i 's/xxTOKENxx/'"$TOKEN"'/g' /etc/lighttpd/lighttpd.conf
## Start lighttpd in foreground mode
/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf 2>&1
sleep 10