1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Fix corepack install

This commit is contained in:
Salamandar 2024-05-17 23:52:48 +02:00
parent df4eb69a20
commit 86bea30a81
3 changed files with 6 additions and 1 deletions

View file

@ -130,7 +130,8 @@ pushd "$install_dir/live"
# Building assets
ynh_use_nodejs
corepack enable
yarn install
# This export might be removed in yunohost 12
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn install
echo "SAFETY_ASSURED=1">> "$config"
ynh_exec_warn_less ynh_exec_as "$app" RAILS_ENV=production "$ynh_ruby_load_path" "$ld_preload" bin/bundle exec rails db:migrate --quiet
ynh_exec_warn_less ynh_exec_as "$app" RAILS_ENV=production "$ynh_ruby_load_path" "$ld_preload" bin/bundle exec rails assets:precompile --quiet

View file

@ -66,6 +66,8 @@ pushd "$install_dir/live"
ynh_exec_as "$app" "$ynh_ruby_load_path" "$ld_preload" bin/bundle install --redownload -j"$(nproc)"
ynh_use_nodejs
# This export might be removed in yunohost 12
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
corepack enable
yarn install
popd

View file

@ -103,6 +103,8 @@ pushd "$install_dir/live"
ynh_exec_as "$app" "$ynh_ruby_load_path" "$ld_preload" bin/bundle config set force_ruby_platform true --quiet
ynh_exec_as "$app" "$ynh_ruby_load_path" "$ld_preload" bin/bundle install -j$(getconf _NPROCESSORS_ONLN)
ynh_use_nodejs
# This export might be removed in yunohost 12
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
corepack enable
yarn install
if [ -d "$install_dir/live/public/assets" ]; then