Merge branch 'pending-new-bw-release' into main

This commit is contained in:
Franzi 2020-09-26 15:18:29 +02:00
commit a67353e24f
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 17 additions and 13 deletions

View file

@ -6,16 +6,6 @@ actions = {
'directory:/opt/mautrix-telegram', # provided by bundle:users 'directory:/opt/mautrix-telegram', # provided by bundle:users
}, },
}, },
'mautrix-telegram_install_bridge': {
# TODO find out how we can check if *this package* requires an update
'command': '/opt/mautrix-telegram/venv/bin/pip install --upgrade mautrix-telegram[all]',
'needs': {
'action:mautrix-telegram_create_virtualenv',
},
'triggers': {
'action:mautrix-telegram_upgrade_database',
},
},
'mautrix-telegram_init_alembic': { 'mautrix-telegram_init_alembic': {
'command': '/opt/mautrix-telegram/venv/bin/alembic -c /opt/mautrix-telegram/alembic.ini -x /opt/mautrix-telegram/config.yaml init /opt/mautrix-telegram/alembic', 'command': '/opt/mautrix-telegram/venv/bin/alembic -c /opt/mautrix-telegram/alembic.ini -x /opt/mautrix-telegram/config.yaml init /opt/mautrix-telegram/alembic',
'unless': 'test -d /opt/mautrix-telegram/alembic', 'unless': 'test -d /opt/mautrix-telegram/alembic',
@ -34,6 +24,19 @@ actions = {
}, },
} }
pkg_pip = {
'/opt/mautrix-telegram/venv/mautrix-telegram': {
'needs': {
'action:mautrix-telegram_create_virtualenv',
},
'triggers': {
'action:mautrix-telegram_upgrade_database',
'svc_systemd:mautrix-telegram:restart',
},
},
}
svc_systemd = { svc_systemd = {
'mautrix-telegram': { 'mautrix-telegram': {
'needs': { 'needs': {

View file

@ -1,7 +1,7 @@
groups['all'] = { groups['all'] = {
'member_patterns': ( 'member_patterns': {
r".*", r".*",
), },
'bundles': { 'bundles': {
'apt', 'apt',
'cron', 'cron',
@ -35,5 +35,6 @@ groups['all'] = {
}, },
}, },
}, },
'pip_command': 'pip3',
} }

View file

@ -1 +1 @@
bundlewrap>=4.0.0 bundlewrap>=4.2.0