From 4c44b78cbb9964f56c88f9973a41ad7ccb675c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 12 May 2023 22:14:11 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 28a2167..043483b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -52,6 +52,21 @@ ynh_add_nginx_config env_path="$PATH" ynh_add_systemd_config +#================================================= +# INSTALL ELEVENTY +#================================================= +ynh_script_progression --message="Installing $app..." --weight=10 + +pushd $install_dir + ynh_use_nodejs + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm init -y + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install @11ty/eleventy --save-dev +popd + +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= + yunohost service add $app --description="Simpler site generator" --log="/var/log/$app/$app.log" #=================================================