szurubooru/client/docker-start.sh

13 lines
240 B
Bash
Raw Normal View History

2019-09-29 01:28:04 +02:00
#!/usr/bin/dumb-init /bin/sh
# Create cache directory
mkdir -p /tmp/nginx-cache
chmod a+rwx /tmp/nginx-cache
2019-09-29 01:28:04 +02:00
# Integrate environment variables
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
/etc/nginx/nginx.conf
2019-09-29 01:28:04 +02:00
# Start server
exec nginx