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:
parent
cd607aadc8
commit
4c44b78cbb
1 changed files with 15 additions and 0 deletions
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue