vb: changes for running locally with my own docker image

This commit is contained in:
vbatts 2025-08-01 09:01:34 -04:00 committed by Vincent Batts
parent 10383d526f
commit 51e1f699ad
2 changed files with 35 additions and 1 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
function fixperms {
chown -R $UID:$GID /var/log /data
@ -43,4 +43,8 @@ if ls /data/plugins/*.db > /dev/null 2>&1; then
mv -n /data/plugins/*.db /data/dbs/
fi
if [ -f "/venv/bin/activate" ] ; then
exec gosu $UID:$GID bash -c 'source /venv/bin/activate && python3 -m maubot -c /data/config.yaml'
fi
exec su-exec $UID:$GID python3 -m maubot -c /data/config.yaml