From 208f3012d03a2d8f62a28605383d96813b2483e9 Mon Sep 17 00:00:00 2001 From: Gildas <25692645+Gildas-GH@users.noreply.github.com> Date: Sat, 23 Dec 2023 19:49:02 +0100 Subject: [PATCH] Fix Sharp installation --- scripts/install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 33a1a85..3ce967c 100755 --- a/scripts/install +++ b/scripts/install @@ -54,7 +54,6 @@ ynh_add_nginx_config pushd $install_dir/lemmy-ui ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn add sharp - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH npm rebuild sharp popd #================================================= @@ -157,6 +156,13 @@ yunohost service add $app-pict-rs --description="Simple image hosting service fo #================================================= # START SYSTEMD SERVICE #================================================= + +# TMP rebuild sharp +pushd $install_dir/lemmy-ui + ynh_use_nodejs + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH npm rebuild sharp +popd + ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service