12 lines
279 B
Bash
Executable file
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
|