From c9160c33d9ee540a050840b62b81b828d6add3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 6 Apr 2024 11:27:37 +0200 Subject: [PATCH] Update install --- scripts/install | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 8b25c1c..a502c93 100644 --- a/scripts/install +++ b/scripts/install @@ -82,18 +82,13 @@ chown $app:$app "$install_dir/credentials.json" #================================================= ynh_script_progression --message="Installing $app..." --weight=10 - -RUN cd ./admin && npm install -g pnpm && pnpm install && pnpm run build --outDir ./dist -RUN cd ./ui && pnpm install && pnpm run build --outDir ./dist - pushd $install_dir ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $install_dir/admin && $ynh_npm install -g pnpm && pnpm install && pnpm run build --outDir ./dist - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $install_dir/ui && pnpm install && pnpm run build --outDir ./dist #ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install -g pnpm - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true src/bin/installDeps.sh + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true bin/installDeps.sh && rm -rf ~/.npm && rm -rf ~/.local && rm -rf ~/.cache popd #=================================================