From c3c2852730d68cf2eca369f66b2b33fe325d3340 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 1 Sep 2024 14:43:42 +0200 Subject: [PATCH 1/4] upgrade to 0.8.8 --- manifest.toml | 2 +- tests.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 580fa83..594df66 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ description.gl = "Rexistra as túas actividades ao aire libre 🚴" description.ca = "Seguiment d'activitats a l'aire lliure autoallotjat 🚴" description.fr = "Traqueur d’activités extérieures auto-hébergé 🚴" -version = "0.8.7~ynh1" +version = "0.8.8~ynh1" maintainers = ["Thovi98"] diff --git a/tests.toml b/tests.toml index 443bf3b..63ffd2c 100644 --- a/tests.toml +++ b/tests.toml @@ -21,4 +21,5 @@ test_format = 1.0 test_upgrade_from.2c6b69d.name = "0.8.3" test_upgrade_from.fb74b14.name = "0.8.4" test_upgrade_from.853024c.name = "helpers_v1 + 0.8.5" - test_upgrade_from.ec414ce.name = "0.8.6" \ No newline at end of file + test_upgrade_from.ec414ce.name = "0.8.6" + test_upgrade_from.064f8a4.name = "0.8.7" \ No newline at end of file From 2589a962f140287e54b2494ad5bac1c471c6c0e6 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 1 Sep 2024 12:43:46 +0000 Subject: [PATCH 2/4] Auto-update READMEs --- README.md | 2 +- README_es.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_id.md | 2 +- README_ru.md | 2 +- README_zh_Hans.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e4cbf66..00564c6 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file. -**Shipped version:** 0.8.7~ynh1 +**Shipped version:** 0.8.8~ynh1 ## Screenshots diff --git a/README_es.md b/README_es.md index 225802a..f3aad71 100644 --- a/README_es.md +++ b/README_es.md @@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file. -**Versión actual:** 0.8.7~ynh1 +**Versión actual:** 0.8.8~ynh1 ## Capturas diff --git a/README_eu.md b/README_eu.md index e47965a..9508c23 100644 --- a/README_eu.md +++ b/README_eu.md @@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file. -**Paketatutako bertsioa:** 0.8.7~ynh1 +**Paketatutako bertsioa:** 0.8.8~ynh1 ## Pantaila-argazkiak diff --git a/README_fr.md b/README_fr.md index a59137d..5e176c5 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main. FitTrackee vous permet de suivre vos activités de plein air (séances d'entraînement) à partir de fichiers gpx et de conserver vos données sur votre propre serveur. Aucune application mobile n'a encore été développée, mais plusieurs applications mobiles existantes peuvent stocker localement les données des séances d'entraînement et les exporter dans un fichier gpx. -**Version incluse :** 0.8.7~ynh1 +**Version incluse :** 0.8.8~ynh1 ## Captures d’écran diff --git a/README_gl.md b/README_gl.md index ee7ac07..02fe28b 100644 --- a/README_gl.md +++ b/README_gl.md @@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file. -**Versión proporcionada:** 0.8.7~ynh1 +**Versión proporcionada:** 0.8.8~ynh1 ## Capturas de pantalla diff --git a/README_id.md b/README_id.md index c3af37c..b9fec58 100644 --- a/README_id.md +++ b/README_id.md @@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file. -**Versi terkirim:** 0.8.7~ynh1 +**Versi terkirim:** 0.8.8~ynh1 ## Tangkapan Layar diff --git a/README_ru.md b/README_ru.md index 68a7035..91dc27b 100644 --- a/README_ru.md +++ b/README_ru.md @@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file. -**Поставляемая версия:** 0.8.7~ynh1 +**Поставляемая версия:** 0.8.8~ynh1 ## Снимки экрана diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 538a503..1495869 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file. -**分发版本:** 0.8.7~ynh1 +**分发版本:** 0.8.8~ynh1 ## 截图 From 69630e37ed73df22e9336944d8397653c39bba0b Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 1 Sep 2024 15:39:22 +0200 Subject: [PATCH 3/4] fix logrotate --- scripts/install | 3 +++ scripts/restore | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index e1b7f74..bcd52ee 100755 --- a/scripts/install +++ b/scripts/install @@ -23,6 +23,9 @@ ynh_script_progression "Configuring logrotate to manage application logfiles" # Use logrotate to manage application logfile(s) ynh_config_add_logrotate +touch /var/log/$app/$app.log +touch /var/log/$app/${app}_workers.log +chown -R $app:www-data /var/log/$app/ #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE diff --git a/scripts/restore b/scripts/restore index 835cca0..5d85694 100644 --- a/scripts/restore +++ b/scripts/restore @@ -15,6 +15,9 @@ ynh_script_progression "Configuring logrotate to manage application logfiles" # Use logrotate to manage application logfile(s) ynh_config_add_logrotate +touch /var/log/$app/$app.log +touch /var/log/$app/${app}_workers.log +chown -R $app:www-data /var/log/$app/ #================================================= # RESTORE THE NGINX CONFIGURATION From 9de3b6655a4816799a996734266184cb41116074 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 1 Sep 2024 16:53:09 +0200 Subject: [PATCH 4/4] fix logs --- scripts/change_url | 5 ++--- scripts/upgrade | 8 ++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 7ca224a..26618d1 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -10,9 +10,8 @@ source /usr/share/yunohost/helpers admin=$(ynh_user_get_info --username=$admin --key=username) admin_mail=$(ynh_user_get_info --username=$admin --key=mail) -ynh_app_setting_set_default --key=weather_api_provider --value=$weather_provider - -ynh_app_setting_set_default --key=weather_api_key --value=$weather_key +ynh_app_setting_set_default --key=weather_api_provider --value=$weather_api_provider +ynh_app_setting_set_default --key=weather_api_key --value=$weather_api_key ynh_app_setting_set_default --key=redis_db --value=$(ynh_redis_get_free_db) diff --git a/scripts/upgrade b/scripts/upgrade index b01404b..83aac2c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -80,6 +80,14 @@ ynh_script_progression "Upgrading NGINX web server configuration..." # Create a dedicated NGINX config ynh_config_add_nginx +#================================================= +# LOGROTATE +#================================================= +#temporary fix for installations with wrong permissions for logs +touch /var/log/$app/$app.log +touch /var/log/$app/${app}_workers.log +chown -R $app:www-data /var/log/$app/ + #================================================= # SETUP SYSTEMD #=================================================