Fix copying example config on first run of docker image
This commit is contained in:
+1
-1
@@ -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 \
|
||||
|
||||
+1
-1
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user