docker-media-repo/root/etc/s6.d/media-repo/run

12 lines
279 B
Plaintext
Raw Permalink Normal View History

2018-01-13 14:21:19 +00:00
#!/usr/bin/env sh
cd /data
2018-01-13 14:37:51 +00:00
if [ ! -f media-repo.yaml ]; then
cp /etc/media-repo.yaml.sample media-repo.yaml
2018-01-13 14:21:19 +00:00
fi
rm -rf migrations
2018-01-14 11:53:31 +00:00
cp -R /var/lib/media-repo-migrations migrations
chown -R ${UID}:${GID} /data
chown -R ${UID}:${GID} /media
2018-01-13 14:21:19 +00:00
exec su-exec ${UID}:${GID} media_repo