From a66f49108d33c0b0d59cd131894a0cc34f774531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 27 Feb 2023 19:24:31 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 47ca1da..9e2dfb6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,22 +78,24 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated nginx config ynh_add_nginx_config -#================================================= -# UPGRADE DEPENDENCIES -#================================================= -ynh_script_progression --message="Upgrading dependencies..." --weight=10 - # Install Nodejs ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version -#================================================= -# SETUP SYSTEMD -#================================================= -ynh_script_progression --message="Configuring a systemd service..." --weight=2 - # Create a dedicated systemd config ynh_add_systemd_config +#============================================== +# INSTALL HEDGEDOC +#============================================== +ynh_script_progression --message="Building HedgeDoc... (this will take some time and resources!)" --weight=20 + +pushd "$install_dir" + ynh_use_nodejs + #ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --frozen-lockfile + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build +popd + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================