#!/bin/sh set -e # content/ lives on a persistent volume; seed each file from the image's # untouched default on first run so a fresh volume isn't missing them. mkdir -p /app/content if [ ! -f /app/content/site.json ]; then echo "Seeding content/site.json from image default..." cp /app/content.default/site.json /app/content/site.json fi if [ ! -f /app/content/theme.json ]; then echo "Seeding content/theme.json from image default..." cp /app/content.default/theme.json /app/content/theme.json fi exec "$@"