bundles/element-web: remove --openssl-legacy-provider
This commit is contained in:
parent
dff2bb0289
commit
d5f5fd853b
1 changed files with 2 additions and 8 deletions
|
@ -8,7 +8,7 @@ directories = {
|
||||||
|
|
||||||
git_deploy = {
|
git_deploy = {
|
||||||
'/opt/element-web': {
|
'/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',
|
'repo': 'https://github.com/vector-im/element-web.git',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'action:element-web_yarn',
|
'action:element-web_yarn',
|
||||||
|
@ -18,22 +18,16 @@ git_deploy = {
|
||||||
|
|
||||||
files = {
|
files = {
|
||||||
'/opt/element-web/webapp/config.json': {
|
'/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': {
|
'needs': {
|
||||||
'action:element-web_yarn',
|
'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 = {
|
actions = {
|
||||||
'element-web_yarn': {
|
'element-web_yarn': {
|
||||||
'command': ' && '.join([
|
'command': ' && '.join([
|
||||||
*extra_install_cmds,
|
|
||||||
'cd /opt/element-web',
|
'cd /opt/element-web',
|
||||||
'yarn install --pure-lockfile --ignore-scripts',
|
'yarn install --pure-lockfile --ignore-scripts',
|
||||||
'yarn build',
|
'yarn build',
|
||||||
|
|
Loading…
Reference in a new issue