docker-media-repo/root/etc/s6.d/media-repo/run
Jan Christian Grünhage bc3fd5171d
Some checks failed
the build failed
fix: chown /media and replace migrations
2018-01-14 21:09:07 +01:00

12 lines
279 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
rm -rf migrations
cp -R /var/lib/media-repo-migrations migrations
chown -R ${UID}:${GID} /data
chown -R ${UID}:${GID} /media
exec su-exec ${UID}:${GID} media_repo