Only move dbs if they exist

This commit is contained in:
Tulir Asokan 2022-01-07 16:20:50 +02:00
parent a1a00ff655
commit 3e8e034a5a

View File

@ -41,6 +41,8 @@ fi
alembic -x config=/data/config.yaml upgrade head alembic -x config=/data/config.yaml upgrade head
fixperms fixperms
fixconfig 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 exec su-exec $UID:$GID python3 -m maubot -c /data/config.yaml