From 6ac0fa048fc7a9a715802c108daad889e6d1e8d7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 11 Jul 2023 07:44:39 +0200 Subject: [PATCH] fix --- manifest.toml | 3 +++ scripts/_common.sh | 2 +- scripts/install | 10 +++++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index db07e21..f40a365 100644 --- a/manifest.toml +++ b/manifest.toml @@ -65,6 +65,9 @@ ram.runtime = "50M" [resources.apt] packages = "postgresql espeak" + extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main" + extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg" + extras.yarn.packages = "yarn" [resources.database] type = "postgresql" diff --git a/scripts/_common.sh b/scripts/_common.sh index 702e69f..75bdfd1 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -NODEJS_VERSION=18 +NODEJS_VERSION=20 #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index d91bc38..14c277e 100755 --- a/scripts/install +++ b/scripts/install @@ -18,7 +18,6 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_use_nodejs ln -fs /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1 - #================================================= # CREATE A POSTGRESQL DATABASE #================================================= @@ -47,6 +46,15 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config +#================================================= +# INSTALL THE SHARP +#================================================= + +pushd $install_dir + ynh_use_nodejs + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --global sharp +popd + #================================================= # MAKE INSTALL #=================================================