From 7fbdf805f7d60ca6ed1f895f03b000c920ab66f1 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:22:34 +0100 Subject: [PATCH] Update install --- scripts/install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/install b/scripts/install index 2cddc46..477901f 100644 --- a/scripts/install +++ b/scripts/install @@ -62,6 +62,20 @@ ynh_add_systemd_config yunohost service add $app --description="Collaborative Markdown editor" --log="/var/log/$app/$app.log" +#================================================= +# SPECIFIC SETUP +#============================================== +# INSTALL HEDGEDOC +#============================================== +ynh_script_progression --message="Building HedgeDoc... (this will take some time and resources!)" --weight=20 + +pushd "$final_path" + 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 + #================================================= # MODIFY A CONFIG FILE #=================================================