diff --git a/bundles/element-web/items.py b/bundles/element-web/items.py index 190bf3e..bbd7622 100644 --- a/bundles/element-web/items.py +++ b/bundles/element-web/items.py @@ -27,7 +27,12 @@ files = { actions = { 'element-web_yarn': { - 'command': 'cd /opt/element-web && npm install yarn && node_modules/yarn/bin/yarn install && node_modules/yarn/bin/yarn build', + 'command': ' && '.join([ + 'cd /opt/element-web', + 'npm install yarn', + 'node_modules/yarn/bin/yarn install --pure-lockfile --ignore-scripts', + 'node_modules/yarn/bin/yarn build', + ]), 'needs': { 'pkg_apt:nodejs', }, diff --git a/bundles/hedgedoc/items.py b/bundles/hedgedoc/items.py index b020351..c7d329e 100644 --- a/bundles/hedgedoc/items.py +++ b/bundles/hedgedoc/items.py @@ -56,8 +56,8 @@ actions = { 'command': ' && '.join([ 'cd /opt/hedgedoc', 'npm install yarn', - 'node_modules/yarn/bin/yarn install --production=true --pure-lockfile', - 'node_modules/yarn/bin/yarn install', + 'node_modules/yarn/bin/yarn install --production=true --pure-lockfile --ignore-scripts', + 'node_modules/yarn/bin/yarn install --ignore-scripts', 'node_modules/yarn/bin/yarn build', ]), 'needs': { diff --git a/bundles/powerdnsadmin/items.py b/bundles/powerdnsadmin/items.py index dfcbc7e..fa670d1 100644 --- a/bundles/powerdnsadmin/items.py +++ b/bundles/powerdnsadmin/items.py @@ -57,7 +57,13 @@ actions = { }, 'powerdnsadmin_compile_assets': { 'triggered': True, - 'command': 'cd /opt/powerdnsadmin/src && npm install yarn && node_modules/yarn/bin/yarn install --pure-lockfile && FLASK_APP=/opt/powerdnsadmin/src/powerdnsadmin/__init__.py /opt/powerdnsadmin/venv/bin/flask assets build && chown -R powerdnsadmin:powerdnsadmin /opt/powerdnsadmin/src/powerdnsadmin/static/', + 'command': ' && '.join([ + 'cd /opt/powerdnsadmin/src', + 'npm install yarn', + 'node_modules/yarn/bin/yarn install --pure-lockfile --ignore-scripts', + 'FLASK_APP=/opt/powerdnsadmin/src/powerdnsadmin/__init__.py /opt/powerdnsadmin/venv/bin/flask assets build', + 'chown -R powerdnsadmin:powerdnsadmin /opt/powerdnsadmin/src/powerdnsadmin/static/', + ]), 'needs': { 'action:powerdnsadmin_install_deps', 'pkg_apt:',