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:
parent
5d1e34d35a
commit
c43806dc63
1 changed files with 13 additions and 13 deletions
|
@ -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"
|
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
|
# 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"
|
ynh_add_config --template="../conf/flows.json" --destination="$install_dir/data/flows.json"
|
||||||
fi
|
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
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue