From 7dee78f792c5fa91419c52d6282ee315344f8678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 19 Oct 2023 20:05:40 +0200 Subject: [PATCH] cleaning --- scripts/install | 4 +--- scripts/upgrade | 10 +--------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index 1952589..e908285 100755 --- a/scripts/install +++ b/scripts/install @@ -118,14 +118,12 @@ yunohost service add $app --description="Outline server" --log="/var/log/$app/$a #================================================= # BUILD YARN DEPENDENCIES #================================================= +ynh_script_progression --message="Building $app" --weight=18 pushd "$install_dir" ynh_use_nodejs -#REMOVEME? ynh_script_progression --message="Fetching Yarn production dependencies... This can be very long, be patient !" --weight=18 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --frozen-lockfile --network-timeout 1000000000 2>&1 - ynh_script_progression --message="Building... This can be very long, be patient !" --weight=18 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_OPTIONS="--max-old-space-size=3200" yarn build 2>&1 - ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1 popd diff --git a/scripts/upgrade b/scripts/upgrade index 12cd69a..48ea078 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,11 +48,6 @@ if ynh_compare_current_package_version --comparison le --version 0.69.2.2~ynh1 then ynh_script_progression --message="Migrating MinIO data to local directory" -#REMOVEME? minio_domain=$(ynh_app_setting_get --app=$app --key=minio_domain) -#REMOVEME? minio_admin=$(ynh_app_setting_get --app=$app --key=minio_admin) -#REMOVEME? minio_password=$(ynh_app_setting_get --app=$app --key=minio_password) -#REMOVEME? mc_path=$(ynh_app_setting_get --app=$app --key=mc_path) - mkdir -p "/var/lib/$app/data" chown -R minio:www-data "/var/lib/$app" ynh_exec_warn_less sudo -u minio $mc_path/mc mirror --preserve "minio/outlinestorage" "/var/lib/$app/data" @@ -79,15 +74,12 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$NODEJS_VERSION #================================================= # UPGRADE YARN DEPENDENCIES #================================================= -#REMOVEME? ynh_script_progression --message="Building Yarn dependencies... This can be very long, be patient !" --weight=10 +ynh_script_progression --message="Building $app" --weight=10 pushd "$install_dir" ynh_use_nodejs -#REMOVEME? ynh_script_progression --message="Fetching Yarn production dependencies... This can be very long, be patient !" --weight=18 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --frozen-lockfile --network-timeout 1000000000 2>&1 - ynh_script_progression --message="Building... This can be very long, be patient !" --weight=18 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_OPTIONS="--max-old-space-size=3900" yarn build 2>&1 - ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1 popd