fix: rename config file name
All checks were successful
the build was successful

This commit is contained in:
Jan Christian Grünhage 2018-01-13 15:37:51 +01:00
parent d671ada6b7
commit d66ef0f4f8
Signed by: jcgruenhage
GPG key ID: 6594C449C633D10C
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ RUN apk add --no-cache \
&& GOPATH=`pwd`:`pwd`/vendor go build -o bin/media_repo ./src/github.com/turt2live/matrix-media-repo/cmd/media_repo/ \
&& GOPATH=`pwd`:`pwd`/vendor go build -o bin/import_synapse ./src/github.com/turt2live/matrix-media-repo/cmd/import_synapse/ \
&& cp bin/media_repo bin/import_synapse /usr/local/bin \
&& cp config.sample.yaml /etc/media_repo.yaml.sample \
&& cp config.sample.yaml /etc/media-repo.yaml.sample \
&& cd / \
&& rm -rf /tmp/* \
&& apk del build-deps

View file

@ -3,8 +3,8 @@
chown -R ${UID}:${GID} /data
cd /data
if [ ! -f media_repo.yaml ]; then
cp /etc/media_repo.yaml.sample media_repo.yaml
if [ ! -f media-repo.yaml ]; then
cp /etc/media-repo.yaml.sample media-repo.yaml
fi
exec su-exec ${UID}:${GID} media_repo