From dc4110940bfa73894e6494c85198cabc333c91a1 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 19 Nov 2023 17:30:16 +0100 Subject: [PATCH] try fix for sandboxed-module --- scripts/install | 3 +-- scripts/upgrade | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index e92e344..57d9dcb 100755 --- a/scripts/install +++ b/scripts/install @@ -110,7 +110,6 @@ sed -iE "s%'-synctex=1',%'-synctex=1', '-shell-escape',%g" $install_dir/live/ser cp "$install_dir/build_ldap/ldap-overleaf-sl/sharelatex/settings.pug" "$install_dir/live/services/web/app/views/user/settings.pug" cp "$install_dir/build_ldap/ldap-overleaf-sl/sharelatex/navbar.pug" "$install_dir/live/services/web/app/views/layout/navbar.pug" cp "$install_dir/build_ldap/ldap-overleaf-sl/sharelatex/admin-sysadmin.pug" "$install_dir/live/services/web/app/views/admin/index.pug" -ynh_secure_remove --file="$install_dir/live/services/web/app/views/admin/register.pug" ynh_secure_remove --file="$install_dir/live/services/web/app/views/project/editor/review-panel.pug" touch "$install_dir/live/services/web/app/views/project/editor/review-panel.pug" @@ -119,7 +118,7 @@ ynh_secure_remove --file="$install_dir/build_ldap" pushd "$install_dir/live" ynh_use_nodejs - ynh_exec_warn_less $ynh_npm install -g npm@7.24.2 + ynh_exec_warn_less $ynh_npm install -g sandboxed-module@latest npm ci popd diff --git a/scripts/upgrade b/scripts/upgrade index eb0ccca..1aae419 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -119,7 +119,6 @@ then cp "$install_dir/build_ldap/ldap-overleaf-sl/sharelatex/settings.pug" "$install_dir/live/services/web/app/views/user/settings.pug" cp "$install_dir/build_ldap/ldap-overleaf-sl/sharelatex/navbar.pug" "$install_dir/live/services/web/app/views/layout/navbar.pug" cp "$install_dir/build_ldap/ldap-overleaf-sl/sharelatex/admin-sysadmin.pug" "$install_dir/live/services/web/app/views/admin/index.pug" - ynh_secure_remove --file="$install_dir/live/services/web/app/views/admin/register.pug" ynh_secure_remove --file="$install_dir/live/services/web/app/views/project/editor/review-panel.pug" touch "$install_dir/live/services/web/app/views/project/editor/review-panel.pug" @@ -128,7 +127,7 @@ then pushd "$install_dir/live" ynh_use_nodejs - ynh_exec_warn_less $ynh_npm install -g npm@7.24.2 + ynh_exec_warn_less $ynh_npm install -g sandboxed-module@latest npm ci popd