1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cheky_ynh.git synced 2024-09-03 18:16:00 +02:00

Merge pull request #2 from Gofannon/testing

Testing
This commit is contained in:
Gofannon 2018-05-23 19:12:41 +02:00 committed by GitHub
commit f93653c45d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 46 deletions

View file

@ -3,32 +3,32 @@
> *This package allow you to install cheky quickly and simply on a YunoHost server. > *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.* 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** ## Features
[Cheky](https://www.cheky.net) allows you to create various alerts
for french classifieds ads website like Leboncoin and SeLoger.
**French** ### Français
[Cheky](https://www.cheky.net) vous permet de créer des alertes Leboncoin et des alertes SeLoger. * [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 Leboncoin et 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
## Additionnal informations * [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
* 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
## Limitations ## Limitations
* Pas de mise à jour automatique depuis l'ancien package [LBCAlerte](https://github.com/YunoHost-Apps/LBCAlerte_ynh)
* Application en français uniquement * Application en français uniquement
* Ne fonctionne pas avec le SSO (comptes admin/utilisateurs séparés). * 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 ## 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 * Cheky website: https://www.cheky.net
* YunoHost website: https://yunohost.org * YunoHost website: https://yunohost.org

View file

@ -6,7 +6,7 @@
"en": "Cheky package for YunoHost.", "en": "Cheky package for YunoHost.",
"fr": "Application Cheky pour YunoHost." "fr": "Application Cheky pour YunoHost."
}, },
"version": "3.8.1", "version": "3.8.1~ynh1",
"url": "https://www.cheky.net", "url": "https://www.cheky.net",
"license": "free", "license": "free",
"maintainer": { "maintainer": {
@ -14,6 +14,18 @@
"email": "gofanon@riseup.net", "email": "gofanon@riseup.net",
"url": "" "url": ""
}, },
"previous_maintainers": [
{
"name": "JimboJoe",
"email": "jimmy@monin.net",
"url": ""
},
{
"name": "ZeJMaN",
"email": "",
"url": "https://github.com/ZeJMaN"
}
],
"requirements": { "requirements": {
"yunohost": ">> 2.6.4" "yunohost": ">> 2.6.4"
}, },

View file

@ -107,12 +107,21 @@ ynh_add_fpm_config
# Add cron job # Add cron job
#================================================= #=================================================
# Path where crontab will be installed
cron_path="/etc/cron.d/$app" cron_path="/etc/cron.d/$app"
ynh_replace_string "__USER__" "$app" ../conf/cheky.cron
ynh_replace_string "__FINALPATH__" "$final_path" ../conf/cheky.cron # Copy crontab from package to Yunohost
sudo cp ../conf/cheky.cron "$cron_path" sudo cp -a ../conf/cheky.cron "$cron_path"
# Secure crontab
chown root: "$cron_path"
sudo chmod 644 "$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 # SETUP APPLICATION WITH CURL
#================================================= #=================================================
@ -152,12 +161,6 @@ chown -R $app: $final_path/var
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)
ynh_use_logrotate ynh_use_logrotate
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
#=================================================
yunohost service add NAME_INIT.D --log "/var/log/FILE.log"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================

View file

@ -22,20 +22,6 @@ final_path=$(ynh_app_setting_get $app final_path)
#================================================= #=================================================
# STANDARD REMOVE # 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 # REMOVE THE MYSQL DATABASE
#================================================= #=================================================

View file

@ -79,7 +79,6 @@ chown -R root: $final_path
# Only path that needs to be writable by cheky # Only path that needs to be writable by cheky
chown -R $app: $final_path/var chown -R $app: $final_path/var
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # 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/pool.d/$app.conf"
ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini" 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 # RESTORE THE CRON FILE
#================================================= #=================================================