bundles/element-web: remove --openssl-legacy-provider

This commit is contained in:
Franzi 2023-06-29 05:39:30 +02:00
parent dff2bb0289
commit d5f5fd853b
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -8,7 +8,7 @@ directories = {
git_deploy = {
'/opt/element-web': {
'rev': node.metadata['element-web']['version'],
'rev': node.metadata.get('element-web/version'),
'repo': 'https://github.com/vector-im/element-web.git',
'triggers': {
'action:element-web_yarn',
@ -18,22 +18,16 @@ git_deploy = {
files = {
'/opt/element-web/webapp/config.json': {
'content': metadata_to_json(node.metadata['element-web']['config']),
'content': metadata_to_json(node.metadata.get('element-web/config')),
'needs': {
'action:element-web_yarn',
},
},
}
extra_install_cmds = []
if node.metadata.get('nodejs/version') >= 17:
# TODO verify this is still needed when upgrading to 1.12
extra_install_cmds.append('export NODE_OPTIONS=--openssl-legacy-provider')
actions = {
'element-web_yarn': {
'command': ' && '.join([
*extra_install_cmds,
'cd /opt/element-web',
'yarn install --pure-lockfile --ignore-scripts',
'yarn build',