mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
commit
35b3c8b8e0
4 changed files with 9 additions and 6 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
NodeBB is built using the Node.js server-side Javascript platform, delivering unmatched performance.
|
NodeBB is built using the Node.js server-side Javascript platform, delivering unmatched performance.
|
||||||
Building on this high performance platform means fast and dependable performance that will support even the biggest and most active community.
|
Building on this high performance platform means fast and dependable performance that will support even the biggest and most active community.
|
||||||
|
|
||||||
**Shipped version:** 2.1.0~ynh1
|
**Shipped version:** 2.1.1~ynh1
|
||||||
|
|
||||||
**Demo:** https://try.nodebb.org
|
**Demo:** https://try.nodebb.org
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
NodeBB is built using the Node.js server-side Javascript platform, delivering unmatched performance.
|
NodeBB is built using the Node.js server-side Javascript platform, delivering unmatched performance.
|
||||||
Building on this high performance platform means fast and dependable performance that will support even the biggest and most active community.
|
Building on this high performance platform means fast and dependable performance that will support even the biggest and most active community.
|
||||||
|
|
||||||
**Version incluse :** 2.1.0~ynh1
|
**Version incluse :** 2.1.1~ynh1
|
||||||
|
|
||||||
**Démo :** https://try.nodebb.org
|
**Démo :** https://try.nodebb.org
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Forum software built for the modern web",
|
"en": "Forum software built for the modern web",
|
||||||
"fr": "Logiciel de forum conçu pour le Web moderne"
|
"fr": "Logiciel de forum conçu pour le Web moderne"
|
||||||
},
|
},
|
||||||
"version": "2.1.0~ynh1",
|
"version": "2.1.1~ynh1",
|
||||||
"url": "https://nodebb.org",
|
"url": "https://nodebb.org",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|
|
@ -13,6 +13,10 @@ source /usr/share/yunohost/helpers
|
||||||
# MANAGE SCRIPT FAILURE
|
# MANAGE SCRIPT FAILURE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
ynh_clean_setup () {
|
||||||
|
### Remove this function if there's nothing to clean before calling the remove script.
|
||||||
|
true
|
||||||
|
}
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
|
@ -118,7 +122,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE NODEBB
|
# CONFIGURE NODEBB
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring the $app..." --weight=2
|
ynh_script_progression --message="Configuring the app..." --weight=2
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
|
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
|
||||||
|
|
||||||
|
@ -131,7 +135,7 @@ setup="{
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
npm install -g npm@8.9.0
|
npm install npm@latest --location=global
|
||||||
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install lodash --save
|
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install lodash --save
|
||||||
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup "${setup}" 2>/dev/null
|
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup "${setup}" 2>/dev/null
|
||||||
popd
|
popd
|
||||||
|
@ -144,7 +148,6 @@ chown $app:$app "$final_path/config.json"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||||
|
|
||||||
env_path=$PATH
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue