szurubooru/client/docker-start.sh

12 lines
253 B
Bash
Raw Normal View History

2019-09-29 01:28:04 +02:00
#!/usr/bin/dumb-init /bin/sh
# Integrate environment variables
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
/etc/nginx/nginx.conf
2019-09-29 01:28:04 +02:00
sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \
/var/www/index.htm \
/var/www/manifest.json
2019-09-29 01:28:04 +02:00
# Start server
exec nginx