From 8a76a09290dac136ca26dcc4784be54fd24ce0c2 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 6 Jan 2019 13:15:23 +0100 Subject: [PATCH 01/11] Update install (#11) --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index a599ab0..040913b 100644 --- a/scripts/install +++ b/scripts/install @@ -152,6 +152,7 @@ cat $final_path/config.json chown -R $app:$app $final_path pushd $final_path exec_as "$app" ./nodebb setup -l > $install_log +exec_as "$app" npm install nodebb-plugin-dbsearch --save-prod exec_as "$app" ./nodebb build -l popd From 4814e2cc1a192d8e8320c36e7754f505d51092dd Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 6 Jan 2019 13:25:48 +0100 Subject: [PATCH 02/11] Update backup --- scripts/backup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index e18948b..59ec4a4 100644 --- a/scripts/backup +++ b/scripts/backup @@ -41,7 +41,8 @@ pushd $final_path mkdir mongo_backup datebackup=$(date -u +%H%M%m%G) ynh_app_setting_set $app datebackup $datebackup -pushd mongo_backup$datebackup +mkdir mongo_backup/$datebackup +pushd mongo_backup/$datebackup mongodump --db $dbname popd popd From d80c3d0d267c96029b9a4a3ab0313175732e0664 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 6 Jan 2019 13:30:23 +0100 Subject: [PATCH 03/11] Update restore --- scripts/restore | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/restore b/scripts/restore index 388e0cb..2a577a0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -86,8 +86,15 @@ ynh_install_app_dependencies mongodb-org pushd $final_path datebackup=$(ynh_app_setting_get $app datebackup) -mongorestore mongo_backup$datebackup/ -ynh_secure_remove mongo_backup$datebackup/ +mongorestore mongo_backup/$datebackup/ +popd + +#================================================= +# Try reconfiguration +#================================================= + +pushd $final_path +exec_as "$app" ./nodebb build -l popd #================================================= @@ -122,5 +129,4 @@ ynh_restore_file "/etc/logrotate.d/$app" # RELOAD NGINX AND PHP-FPM #================================================= -systemctl reload php5-fpm systemctl reload nginx From ab35224420291b650aad7d07273d997d9ba2ecb2 Mon Sep 17 00:00:00 2001 From: frju365 Date: Mon, 7 Jan 2019 10:50:10 +0100 Subject: [PATCH 04/11] Update systemd.service --- conf/systemd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/systemd.service b/conf/systemd.service index b6ecac4..fb1b2d4 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__ Environment=NODE_ENV=production +Environment="PATH=__ENV_PATH__" ExecStart=__NODE__/node loader.js --no-daemon --no-silent Restart=always From b3443846019e447a0de91361fb88f373e07f188f Mon Sep 17 00:00:00 2001 From: frju365 Date: Mon, 7 Jan 2019 10:50:52 +0100 Subject: [PATCH 05/11] Update install --- scripts/install | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/install b/scripts/install index 040913b..813f491 100644 --- a/scripts/install +++ b/scripts/install @@ -127,7 +127,6 @@ ynh_add_nginx_config #================================================= ynh_add_systemd_config -ynh_replace_string "__NODEJS__" "$nodejs_use_version" "/etc/systemd/system/$app.service" ynh_replace_string "__ENV_PATH__" "$PATH" "/etc/systemd/system/$app.service" ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service" cat /etc/systemd/system/$app.service From 46b7f2c713835c12f92edf6c4d01d062380d1a6a Mon Sep 17 00:00:00 2001 From: frju365 Date: Mon, 7 Jan 2019 11:36:25 +0100 Subject: [PATCH 06/11] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 813f491..7a0c7f6 100644 --- a/scripts/install +++ b/scripts/install @@ -150,9 +150,9 @@ cat $final_path/config.json chown -R $app:$app $final_path pushd $final_path -exec_as "$app" ./nodebb setup -l > $install_log -exec_as "$app" npm install nodebb-plugin-dbsearch --save-prod -exec_as "$app" ./nodebb build -l +exec_as "$app" PATH=$PATH ./nodebb setup -l > $install_log +exec_as "$app" PATH=$PATH npm install nodebb-plugin-dbsearch --save-prod +exec_as "$app" PATH=$PATH ./nodebb build -l popd From 2817c94c9dacffd214bbe8ed9a29c6a88338a796 Mon Sep 17 00:00:00 2001 From: frju365 Date: Mon, 7 Jan 2019 11:37:35 +0100 Subject: [PATCH 07/11] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 7a0c7f6..4a31537 100644 --- a/scripts/install +++ b/scripts/install @@ -150,9 +150,9 @@ cat $final_path/config.json chown -R $app:$app $final_path pushd $final_path -exec_as "$app" PATH=$PATH ./nodebb setup -l > $install_log -exec_as "$app" PATH=$PATH npm install nodebb-plugin-dbsearch --save-prod -exec_as "$app" PATH=$PATH ./nodebb build -l +exec_as "$app" PATH=$PATH NODE_ENV=production ./nodebb setup -l > $install_log +exec_as "$app" PATH=$PATH NODE_ENV=production npm install nodebb-plugin-dbsearch --save-prod +exec_as "$app" PATH=$PATH NODE_ENV=production ./nodebb build -l popd From 5b363637725e8cbd53e09e4e0fcaa96ecd13974a Mon Sep 17 00:00:00 2001 From: frju365 Date: Mon, 7 Jan 2019 12:27:21 +0100 Subject: [PATCH 08/11] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 4a31537..7a0c7f6 100644 --- a/scripts/install +++ b/scripts/install @@ -150,9 +150,9 @@ cat $final_path/config.json chown -R $app:$app $final_path pushd $final_path -exec_as "$app" PATH=$PATH NODE_ENV=production ./nodebb setup -l > $install_log -exec_as "$app" PATH=$PATH NODE_ENV=production npm install nodebb-plugin-dbsearch --save-prod -exec_as "$app" PATH=$PATH NODE_ENV=production ./nodebb build -l +exec_as "$app" PATH=$PATH ./nodebb setup -l > $install_log +exec_as "$app" PATH=$PATH npm install nodebb-plugin-dbsearch --save-prod +exec_as "$app" PATH=$PATH ./nodebb build -l popd From ff4d513bf8fec2112a98cd176431c8a7a9e9aedf Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 14 Feb 2019 11:05:05 +0100 Subject: [PATCH 09/11] Update app.src --- conf/app.src | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/app.src b/conf/app.src index a8cee7d..581f379 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/NodeBB/NodeBB/archive/v1.11.1.tar.gz -SOURCE_SUM=ab12c046d23d38a24fe16a0276fff7f61c76b8c1de2538853875ba9234e23fcd +SOURCE_URL=https://github.com/NodeBB/NodeBB/archive/v1.11.2.tar.gz +SOURCE_SUM=11b4248ea19bcbdec87661ea156e87d14a7462f0f5555b56a98f3be4032785d4 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true From 20e141fb4ca3437afeab161677b24217f94f4328 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 14 Feb 2019 11:09:48 +0100 Subject: [PATCH 10/11] Update install --- scripts/install | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/install b/scripts/install index 7a0c7f6..7fbe565 100644 --- a/scripts/install +++ b/scripts/install @@ -151,7 +151,6 @@ cat $final_path/config.json chown -R $app:$app $final_path pushd $final_path exec_as "$app" PATH=$PATH ./nodebb setup -l > $install_log -exec_as "$app" PATH=$PATH npm install nodebb-plugin-dbsearch --save-prod exec_as "$app" PATH=$PATH ./nodebb build -l popd From 41b71089c17f962d886d015ed5494cdb89b7c3fa Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 7 Mar 2019 12:43:38 +0100 Subject: [PATCH 11/11] Adding Yunohost Integration level with CI links (#13) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7151afe..84375e6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # NodeBB - +[![Integration level](https://dash.yunohost.org/integration/nodebb.svg)](https://dash.yunohost.org/appci/app/nodebb) +[![Install nodebb with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=nodebb) TEST UNIQUEMENT (pour l'instant)/TEST ONLY (for the moment) - Website of the Yuno-package : https://github.com/YunoHost-Apps/nodebb_ynh