Skip to content

Commit

Permalink
Fix copying example config on first run of docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed May 20, 2020
1 parent d0900a9 commit 7fb771b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN apk add --virtual .build-deps \
COPY . /opt/mautrix-telegram
RUN apk add git && pip3 install .[speedups,hq_thumbnails,metrics,e2be] && apk del git \
# This doesn't make the image smaller, but it's needed so that the `version` command works properly
&& rm -rf mautrix_telegram
&& cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram

VOLUME /data
ENV UID=1337 GID=1337 \
Expand Down
2 changes: 1 addition & 1 deletion docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ -f /data/mx-state.json ]; then
fi

if [ ! -f /data/config.yaml ]; then
cp mautrix_telegram/example-config.yaml /data/config.yaml
cp example-config.yaml /data/config.yaml
echo "Didn't find a config file."
echo "Copied default config file to /data/config.yaml"
echo "Modify that config file to your liking."
Expand Down

0 comments on commit 7fb771b

Please sign in to comment.