diff --git a/README.md b/README.md index 24edce0..44f5400 100644 --- a/README.md +++ b/README.md @@ -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. 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 diff --git a/README_fr.md b/README_fr.md index bdaf058..c93e0a5 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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. 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 diff --git a/manifest.json b/manifest.json index 2e43f38..ed4d0ec 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Forum software built for the modern web", "fr": "Logiciel de forum conçu pour le Web moderne" }, - "version": "2.1.0~ynh1", + "version": "2.1.1~ynh1", "url": "https://nodebb.org", "upstream": { "license": "GPL-3.0", diff --git a/scripts/install b/scripts/install index 2407165..1630008 100644 --- a/scripts/install +++ b/scripts/install @@ -13,6 +13,10 @@ source /usr/share/yunohost/helpers # 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 ynh_abort_if_errors @@ -118,7 +122,7 @@ ynh_add_nginx_config #================================================= # 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" @@ -131,7 +135,7 @@ setup="{ pushd $final_path 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 $final_path/nodebb setup "${setup}" 2>/dev/null popd @@ -144,7 +148,6 @@ chown $app:$app "$final_path/config.json" #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -env_path=$PATH # Create a dedicated systemd config ynh_add_systemd_config