wordpress/rootfs/etc/cont-init.d/20-parse-template

11 lines
297 B
Plaintext
Executable File

#!/usr/bin/with-contenv sh
set -e
echo "Parsing virtual host template..."
/usr/local/bin/gomplate -V \
-o /etc/nginx/sites-available/app.conf \
-f /etc/templates/tmpl-app-nginx.conf
echo "Enabling virtual host..."
ln -sf /etc/nginx/sites-available/app.conf /etc/nginx/sites-enabled/app.conf