From 3e8e034a5a0cc3470d293178db0d3c343596a9f6 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 7 Jan 2022 16:20:50 +0200 Subject: [PATCH] Only move dbs if they exist --- docker/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/run.sh b/docker/run.sh index f9b185c..a9a40e1 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -41,6 +41,8 @@ fi alembic -x config=/data/config.yaml upgrade head fixperms fixconfig -mv -n /data/plugins/*.db /data/dbs/ +if ls /data/plugins/*.db > /dev/null 2>&1; then + mv -n /data/plugins/*.db /data/dbs/ +fi exec su-exec $UID:$GID python3 -m maubot -c /data/config.yaml