bundles/travelynx: update bundle for new version

This commit is contained in:
Franzi 2022-12-27 13:38:53 +01:00
parent 82143e34ad
commit 070b466abe
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 10 additions and 21 deletions

View file

@ -36,7 +36,7 @@ files = {
},
'/opt/travelynx/travelynx.conf': {
'content_type': 'mako',
'context': node.metadata['travelynx'],
'context': node.metadata.get('travelynx'),
'needs': {
'git_deploy:/opt/travelynx',
},
@ -61,7 +61,7 @@ if isfile(join(repo.path, 'data', 'travelynx', 'files', 'imprint', node.name)):
git_deploy = {
'/opt/travelynx': {
'repo': 'https://github.com/derf/travelynx.git',
'rev': node.metadata['travelynx']['version'],
'rev': node.metadata.get('travelynx/version'),
'needs': {
'directory:/opt/travelynx',
},
@ -84,7 +84,7 @@ actions = {
'triggered': True,
},
'travelynx_database_migrate': {
'command': 'cd /opt/travelynx && perl index.pl database migrate',
'command': 'export PERL5LIB=/opt/travelynx/local/lib/perl5; cd /opt/travelynx && perl index.pl database migrate',
# Because git_deploy does not put .git onto the server, the script
# will complain on STDERR about not finding a git repository.
# That's why we need to redirect stderr to /dev/null.