From 79eda202bb6fa27faaab4ba8476f77630e542901 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Sun, 20 May 2018 17:41:22 +0200 Subject: [PATCH 1/6] add "yunohost package" version to "checky" version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 3b9d367..309fecf 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Cheky package for YunoHost.", "fr": "Application Cheky pour YunoHost." }, - "version": "3.8.1", + "version": "3.8.1~ynh1", "url": "https://www.cheky.net", "license": "free", "maintainer": { From fee081f72f46e123a8479cc07dda5f1d71d663f7 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Sun, 20 May 2018 17:47:04 +0200 Subject: [PATCH 2/6] add list of previous people who worked on the app --- manifest.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/manifest.json b/manifest.json index 309fecf..aa59d5b 100644 --- a/manifest.json +++ b/manifest.json @@ -14,6 +14,18 @@ "email": "gofanon@riseup.net", "url": "" }, + "previous_maintainers": [ + { + "name": "JimboJoe", + "email": "jimmy@monin.net", + "url": "" + }, + { + "name": "ZeJMaN", + "email": "", + "url": "https://github.com/ZeJMaN" + } + ], "requirements": { "yunohost": ">> 2.6.4" }, From 81e92bc368fe36df11611937e01ad5e666becef6 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Sun, 20 May 2018 19:38:56 +0200 Subject: [PATCH 3/6] fix crontab handling : copy + security --- scripts/install | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 47529dd..e9bdb42 100644 --- a/scripts/install +++ b/scripts/install @@ -107,12 +107,21 @@ ynh_add_fpm_config # Add cron job #================================================= +# Path where crontab will be installed cron_path="/etc/cron.d/$app" -ynh_replace_string "__USER__" "$app" ../conf/cheky.cron -ynh_replace_string "__FINALPATH__" "$final_path" ../conf/cheky.cron -sudo cp ../conf/cheky.cron "$cron_path" + +# Copy crontab from package to Yunohost +sudo cp -a ../conf/cheky.cron "$cron_path" + +# Secure crontab +chown root: "$cron_path" sudo chmod 644 "$cron_path" +# Configure crontab +ynh_replace_string "__USER__" "$app" "$cron_path" +ynh_replace_string "__FINALPATH__" "$final_path" "$cron_path" + + #================================================= # SETUP APPLICATION WITH CURL #================================================= From 36cf6455a2e2a311def72d15e3bc3f7aef4f4618 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Mon, 21 May 2018 10:49:57 +0200 Subject: [PATCH 4/6] fix: remove 'service' not needed in admin panel --- scripts/install | 6 ------ scripts/remove | 14 -------------- scripts/restore | 7 ------- 3 files changed, 27 deletions(-) diff --git a/scripts/install b/scripts/install index e9bdb42..8cfa207 100644 --- a/scripts/install +++ b/scripts/install @@ -161,12 +161,6 @@ chown -R $app: $final_path/var # Use logrotate to manage application logfile(s) ynh_use_logrotate -#================================================= -# ADVERTISE SERVICE IN ADMIN PANEL -#================================================= - -yunohost service add NAME_INIT.D --log "/var/log/FILE.log" - #================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/remove b/scripts/remove index ccb2862..1cb9537 100644 --- a/scripts/remove +++ b/scripts/remove @@ -22,20 +22,6 @@ final_path=$(ynh_app_setting_get $app final_path) #================================================= # STANDARD REMOVE -#================================================= -# STOP AND REMOVE SERVICE -#================================================= - -#================================================= -# REMOVE SERVICE FROM ADMIN PANEL -#================================================= - -if yunohost service status | grep -q $app -then - echo "Remove $app service" - yunohost service remove $app -fi - #================================================= # REMOVE THE MYSQL DATABASE #================================================= diff --git a/scripts/restore b/scripts/restore index cef33d1..232f668 100644 --- a/scripts/restore +++ b/scripts/restore @@ -79,7 +79,6 @@ chown -R root: $final_path # Only path that needs to be writable by cheky chown -R $app: $final_path/var - #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= @@ -87,12 +86,6 @@ chown -R $app: $final_path/var ynh_restore_file "/etc/php5/fpm/pool.d/$app.conf" ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini" -#================================================= -# ADVERTISE SERVICE IN ADMIN PANEL -#================================================= - -yunohost service add $app --log "/var/log/$app/APP.log" - #================================================= # RESTORE THE CRON FILE #================================================= From 02c36e595713898590969c6c81e626783ad4d991 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Wed, 23 May 2018 18:12:11 +0200 Subject: [PATCH 5/6] update README with more details --- README.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 38e8421..1bb460f 100644 --- a/README.md +++ b/README.md @@ -3,32 +3,34 @@ > *This package allow you to install cheky quickly and simply on a YunoHost server. If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.* -## Overview +**Shipped version:** 3.8.1 -**English** -[Cheky](https://www.cheky.net) allows you to create various alerts -for french classifieds ads website like Leboncoin and SeLoger. +## Features -**French** -[Cheky](https://www.cheky.net) vous permet de créer des alertes Leboncoin et des alertes SeLoger. -Vous pouvez ainsi suivre gratuitement, en fonction de vos critères de recherche, les nouvelles annonces mises en ligne sur Leboncoin et Seloger.com. +### Français +[Cheky](https://www.cheky.net) vous permet de créer des alertes [Leboncoin](http://leboncoin.fr/) et des alertes [SeLoger](http://www.seloger.com/). +Vous pouvez ainsi suivre gratuitement, en fonction de vos critères de recherche, les nouvelles annonces mises en ligne sur ces sites internet. +Les alertes peuvent être envoyées par mail, flux RSS et SMS. -## Additionnal informations - - * Anciennement nommé LBCAlerte - * Logiciel pour être alerté de nouvelles annonces par mail, flux RSS et SMS sur Leboncoin et d'autres sites d'annonces. - -**Skipped version:** 3.8.1 +### English +[Cheky](https://www.cheky.net) allows you to create various alerts +for french classifieds ads website like [Leboncoin](http://leboncoin.fr/) and [SeLoger](http://www.seloger.com/). +If you do not live in France, it will not be really useful for you ## Limitations + * Pas de mise à jour automatique depuis l'ancien package [LBCAlerte](https://github.com/YunoHost-Apps/LBCAlerte_ynh) * Application en français uniquement * Ne fonctionne pas avec le SSO (comptes admin/utilisateurs séparés). +## Additionnal informations + + * Anciennement nommé LBCAlerte. Renommé depuis la [version 3.4](https://www.cheky.net/changelog#v3_4) + * Logiciel pour être alerté de nouvelles annonces par mail, flux RSS et SMS sur Leboncoin et d'autres sites d'annonces. ## Links - * Report a bug: https://github.com/YunoHost-Apps/LBCAlerte_ynh/issues + * Report a bug: https://github.com/Gofannon/cheky_ynh/issues * Cheky website: https://www.cheky.net * YunoHost website: https://yunohost.org From 36687effc6bffb73f250a5deb64408797fda3c1b Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Wed, 23 May 2018 18:20:15 +0200 Subject: [PATCH 6/6] update README --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1bb460f..7a6061d 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,13 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Features ### Français -[Cheky](https://www.cheky.net) vous permet de créer des alertes [Leboncoin](http://leboncoin.fr/) et des alertes [SeLoger](http://www.seloger.com/). -Vous pouvez ainsi suivre gratuitement, en fonction de vos critères de recherche, les nouvelles annonces mises en ligne sur ces sites internet. - -Les alertes peuvent être envoyées par mail, flux RSS et SMS. + * [Cheky](https://www.cheky.net) vous permet de créer des alertes [Leboncoin](http://leboncoin.fr/) et des alertes [SeLoger](http://www.seloger.com/). + * Vous pouvez ainsi suivre gratuitement, en fonction de vos critères de recherche, les nouvelles annonces mises en ligne sur ces sites internet. + * Les alertes peuvent être envoyées par mail, flux RSS et SMS. ### English -[Cheky](https://www.cheky.net) allows you to create various alerts -for french classifieds ads website like [Leboncoin](http://leboncoin.fr/) and [SeLoger](http://www.seloger.com/). -If you do not live in France, it will not be really useful for you + * [Cheky](https://www.cheky.net) allows you to create various alerts for french classifieds ads website like [Leboncoin](http://leboncoin.fr/) and [SeLoger](http://www.seloger.com/). + * If you do not live in France, it will not be really useful for you ## Limitations