From a985cc04325f840c662b26778326bb139b61334d Mon Sep 17 00:00:00 2001 From: Gildas <25692645+Gildas-GH@users.noreply.github.com> Date: Sat, 23 Dec 2023 19:37:49 +0100 Subject: [PATCH] Fix Sharp installation --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 6262d04..33a1a85 100755 --- a/scripts/install +++ b/scripts/install @@ -54,6 +54,7 @@ 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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 0f6d7f2..0b9dcd8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,6 +83,7 @@ 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 #=================================================