docker-media-repo/root/etc/s6.d/media-repo/run
Jan Christian Grünhage 5eb3819bee
All checks were successful
the build was successful
fix: add missing migrations folder
2018-01-14 12:53:31 +01:00

10 lines
231 B
Bash
Executable file

#!/usr/bin/env sh
cd /data
if [ ! -f media-repo.yaml ]; then
cp /etc/media-repo.yaml.sample media-repo.yaml
fi
cp -R /var/lib/media-repo-migrations migrations
chown -R ${UID}:${GID} /data
exec su-exec ${UID}:${GID} media_repo