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

17 lines
475 B
Bash
Raw Normal View History

2017-12-09 16:46:17 +01:00
#!/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