1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodered_ynh.git synced 2024-09-03 19:46:25 +02:00

Update install

This commit is contained in:
Éric Gaspar 2023-10-18 16:03:57 +02:00
parent 5d1e34d35a
commit c43806dc63

View file

@ -42,19 +42,6 @@ ynh_add_systemd_config
yunohost service add $app --description="Low-code programming for event-driven applications" --log="/var/log/$app/$app.log"
#=================================================
# SPECIFIC SETUP
#=================================================
# Install through npm
#=================================================
ynh_script_progression --message="Installing $app..." --weight=5
pushd $install_dir
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install node-red-dashboard
popd
#=================================================
# ADD A CONFIGURATION
#=================================================
@ -73,6 +60,19 @@ if [[ "${PACKAGE_CHECK_EXEC:-}" = "1" ]] ; then
ynh_add_config --template="../conf/flows.json" --destination="$install_dir/data/flows.json"
fi
#=================================================
# SPECIFIC SETUP
#=================================================
# Install through npm
#=================================================
ynh_script_progression --message="Installing $app..." --weight=5
pushd $install_dir
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install node-red-dashboard
popd
#=================================================
# START SYSTEMD SERVICE
#=================================================