diff --git a/README.md b/README.md index 38e8421..7a6061d 100644 --- a/README.md +++ b/README.md @@ -3,32 +3,32 @@ > *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 diff --git a/manifest.json b/manifest.json index 3b9d367..aa59d5b 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": { @@ -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" }, diff --git a/scripts/install b/scripts/install index 47529dd..8cfa207 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 #================================================= @@ -152,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 #=================================================