1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/eleventy_ynh.git synced 2024-09-03 18:26:32 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-05-12 22:14:11 +02:00
parent cd607aadc8
commit 4c44b78cbb

View file

@ -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"
#=================================================