Browse Source

Don't print generated registration message if config is invalid. Fixes #240

Tulir Asokan 3 năm trước cách đây
mục cha
commit
05aaf167da
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docker-run.sh

+ 1 - 1
docker-run.sh

@@ -17,7 +17,7 @@ if [ ! -f /data/config.yaml ]; then
 fi
 
 if [ ! -f /data/registration.yaml ]; then
-	python3 -m mautrix_signal -g -c /data/config.yaml -r /data/registration.yaml
+	python3 -m mautrix_signal -g -c /data/config.yaml -r /data/registration.yaml || exit $?
 	echo "Didn't find a registration file."
 	echo "Generated one for you."
 	echo "See https://docs.mau.fi/bridges/general/registering-appservices.html on how to use it."