docker-swag/root/etc/cont-init.d/45-nginx

13 lines
420 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/with-contenv bash
# copy default config files if they don't exist
if [[ ! -f /config/nginx/error_pages.conf ]]; then
cp /defaults/nginx/error_pages.conf.sample /config/nginx/error_pages.conf
fi
if [[ ! -f /config/nginx/proxy.conf ]]; then
cp /defaults/nginx/proxy.conf.sample /config/nginx/proxy.conf
fi
if [[ ! -f /config/www/502.html ]]; then
cp /defaults/www/502.html /config/www/502.html
fi