vb: changes for running locally with my own docker image
This commit is contained in:
parent
10383d526f
commit
51e1f699ad
2 changed files with 35 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue