From 3e9fc96a6315f1b57610238096fffdf3b01dbd0f Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 28 Jul 2022 22:58:40 +0200 Subject: [PATCH 01/18] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 5260975..77dab0d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -PHOTOPRISM_VERSION="220617-bullseye" +PHOTOPRISM_VERSION="220728-bullseye" #pkg_dependencies="libc6-dev libssl-dev libxft-dev libhdf5-serial-dev libpng-dev libheif-examples librsvg2-bin libx264-dev libx265-dev libnss3 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libzmq3-dev" pkg_dependencies="" From 6cf9d37ad473d6f683ec5d7a21ece8138f100da9 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 28 Jul 2022 23:00:55 +0200 Subject: [PATCH 02/18] Upgrade to 220728-bullseye --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index c270519..b613d4d 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "AI-Powered Photos App for the Decentralized Web", "fr": "Gestion de photos en ligne" }, - "version": "2022.06.17~ynh1", + "version": "2022.07.28~ynh1", "url": "photoprism.app", "upstream": { "license": "AGPL-3.0-only", From ff011b75969b8e40f4f1471a5eef9c851e6e684c Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 28 Jul 2022 23:05:11 +0200 Subject: [PATCH 03/18] Update check_process --- check_process | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/check_process b/check_process index f04085b..85dea2f 100644 --- a/check_process +++ b/check_process @@ -17,6 +17,11 @@ multi_instance=0 port_already_use=0 change_url=1 + # 2022.06.17~ynh1 + upgrade=1 from_commit=4de2ab27722b2300a6faff4f910ecf5b93160cb6 ;;; Options Email= Notification=none +;;; Upgrade options + ; commit=4de2ab27722b2300a6faff4f910ecf5b93160cb6 + name=2022.06.17~ynh1 From c96d63bf112d16e763dd4bfc80c60eda47ba3bfe Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 29 Jul 2022 19:30:51 +0200 Subject: [PATCH 04/18] Set timeout --- conf/systemd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/systemd.service b/conf/systemd.service index d2e014b..8557650 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -10,6 +10,7 @@ WorkingDirectory=__FINALPATH__/ ExecStart=__FINALPATH__/live/bin/photoprism --config-path __FINALPATH__/live/config/ --trace start StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit +TimeoutSec=900 # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these From 116345b996d499d8676aa93143cd2cfbc5bdc7e0 Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 29 Jul 2022 19:35:42 +0200 Subject: [PATCH 05/18] Set Thovi98 as maintainer of the app --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index b613d4d..a8687eb 100644 --- a/manifest.json +++ b/manifest.json @@ -18,7 +18,7 @@ }, "license": "AGPL-3.0-only", "maintainer": { - "name": "Raoul de Limezy" + "name": "Thovi98" }, "requirements": { "yunohost": ">= 4.3.0" From d1678f40a8a81cf0df17d280a9922a8e9ed811c1 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 29 Jul 2022 22:07:49 +0200 Subject: [PATCH 06/18] Warn less MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found this helper in funkwhale_ynh repository. Let’s try --- scripts/change_url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index bd34f42..c969588 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -133,7 +133,7 @@ chown $app:$app "$final_path/live/config/options.yml" ynh_script_progression --message="Starting a systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="http: starting web server at" +ynh_exec_warn_less ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="http: starting web server at" #================================================= # RELOAD NGINX From 76d7a96efd88a38e6f7ddf4bcd604d692bbe2500 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 29 Jul 2022 22:25:13 +0200 Subject: [PATCH 07/18] Fix saving advanced config --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index a20ae08..9da7f61 100755 --- a/scripts/install +++ b/scripts/install @@ -157,7 +157,7 @@ ynh_script_progression --message="Adding a configuration file..." ynh_add_config --template="../conf/options.yml" --destination="$final_path/live/config/options.yml" -chmod 400 "$final_path/live/config/options.yml" +chmod 600 "$final_path/live/config/options.yml" chown $app:$app "$final_path/live/config/options.yml" #================================================= From e2807366fd0220698c83e1a9ef9e304bf54e78d9 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 29 Jul 2022 22:25:58 +0200 Subject: [PATCH 08/18] Fix saving advanced config --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1e244b6..a744933 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -154,7 +154,7 @@ ynh_script_progression --message="Updating a configuration file..." ynh_add_config --template="../conf/options.yml" --destination="$final_path/live/config/options.yml" -chmod 400 "$final_path/live/config/options.yml" +chmod 600 "$final_path/live/config/options.yml" chown $app:$app "$final_path/live/config/options.yml" #================================================= From b437d497048ddb745657f2bb7a4ba938f3f327fe Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 29 Jul 2022 22:29:42 +0200 Subject: [PATCH 09/18] ynh_exec_warn_less --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 9da7f61..3d7d147 100755 --- a/scripts/install +++ b/scripts/install @@ -191,7 +191,7 @@ yunohost service add $app --description="AI-Powered Photos App for the Decentral ynh_script_progression --message="Starting a systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="http: starting web server at" +ynh_exec_warn_less ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="http: starting web server at" #================================================= # SETUP SSOWAT From f676074db873b6f76ef6a068eafbd7805f6c1c9d Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 29 Jul 2022 22:48:14 +0200 Subject: [PATCH 10/18] Fix linter warning --- manifest.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/manifest.json b/manifest.json index a8687eb..b2ee443 100644 --- a/manifest.json +++ b/manifest.json @@ -42,6 +42,10 @@ { "name": "is_public", "type": "boolean", + "help": { + "en": "If enabled, Photoprism will be accessible by mobile apps and by users without a YunoHost account. This can be changed later in the webadmin.", + "fr": "Si cette case est cochée, Photoprism sera accessible par des applications mobiles et par les utilisateurs n’ayant pas de compte YunoHost. Vous pourrez changer cela dans la webadmin." + }, "default": true }, { From 67aaa6ece8a4eb7bf039cedf7058b71022787b81 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sat, 30 Jul 2022 12:04:56 +0200 Subject: [PATCH 11/18] Create DESCRIPTION_fr.md --- doc/DESCRIPTION_fr.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/DESCRIPTION_fr.md diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..a8af4d2 --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1,10 @@ +PhotoPrism® est une application de photos alimentée par l'IA pour le Web décentralisé. Elle utilise les dernières technologies pour étiqueter et trouver des photos automatiquement, sans se mettre en travers de votre chemin. Vous pouvez l'utiliser chez vous, sur un serveur privé ou dans le nuage. + +### Fonctionnalités + +- Parcourez toutes vos photos et vidéos sans vous soucier de la conversion RAW, des doublons ou des formats vidéo +- Retrouvez facilement des photos spécifiques grâce à des filtres de recherche puissants +- Inclut quatre cartes du monde en haute résolution pour raviver les souvenirs de vos voyages préférés +- Lancez les Photos Live™ en les survolant dans les albums et les résultats de recherche +- Reconnaît les visages de votre famille et de vos amis +- Classification automatique des photos en fonction de leur contenu et de leur emplacement From dc3d0745bf52b53555674abbf90bf08cabae3f02 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sat, 30 Jul 2022 12:06:20 +0200 Subject: [PATCH 12/18] Create DISCLAIMER_fr.md --- doc/DISCLAIMER_fr.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/DISCLAIMER_fr.md diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md new file mode 100644 index 0000000..1b88a0c --- /dev/null +++ b/doc/DISCLAIMER_fr.md @@ -0,0 +1,10 @@ +* Limites connues : + * Bien qu'ayant atteint le niveau 7, Photoprism n'a pas encore été testé de manière approfondie en conditions réelles. + * Veuillez l'utiliser avec **extrême prudence** si vous l'installez sur un serveur de test ! + * Pas encore testé avec l'architecture AMD + * Photoprism ne supporte actuellement qu'un seul utilisateur. OIDC devrait être supporté d'ici quelques mois. + * Photoprism nécessite une quantité importante de RAM et de disque pour être installé et fonctionner correctement. + +* Lors de la première installation, il vous sera demandé de fournir des informations d'identification. + * Le nom d'utilisateur est "admin". + * Le mot de passe est celui que vous avez défini lors de l'installation. From b4752591c9d5f21a5a14506846ededaf34f3edf3 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sat, 30 Jul 2022 13:44:38 +0200 Subject: [PATCH 13/18] Upgrade to 30 july release --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index b2ee443..99d581f 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "AI-Powered Photos App for the Decentralized Web", "fr": "Gestion de photos en ligne" }, - "version": "2022.07.28~ynh1", + "version": "2022.07.30~ynh1", "url": "photoprism.app", "upstream": { "license": "AGPL-3.0-only", From 75f658ca044f85c8c368860216e784721be0a816 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sat, 30 Jul 2022 13:44:56 +0200 Subject: [PATCH 14/18] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 77dab0d..7c2281f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -PHOTOPRISM_VERSION="220728-bullseye" +PHOTOPRISM_VERSION="220730-bullseye" #pkg_dependencies="libc6-dev libssl-dev libxft-dev libhdf5-serial-dev libpng-dev libheif-examples librsvg2-bin libx264-dev libx265-dev libnss3 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libzmq3-dev" pkg_dependencies="" From 47b71ba3bc681d0a63d24de2a7d1b12cf604d438 Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 5 Aug 2022 07:39:42 +0200 Subject: [PATCH 15/18] Add data dir --- doc/DISCLAIMER.md | 3 +++ doc/DISCLAIMER_fr.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index d3a719c..0d24f2f 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -5,6 +5,9 @@ * Photoprism currently supports only one user. OIDC should be supported within a few months * Photoprism requires an important amount of RAM and disk to install or to work properly +* All data is stored in `/home/yunohost.app/photoprism/photos/` + * Be careful, this data is not backed-up by default when doing a backup + * At first install, you'll be prompted for credentials * Username is "admin" * Password is the password you have set during the installation diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md index 1b88a0c..ea04fdf 100644 --- a/doc/DISCLAIMER_fr.md +++ b/doc/DISCLAIMER_fr.md @@ -5,6 +5,9 @@ * Photoprism ne supporte actuellement qu'un seul utilisateur. OIDC devrait être supporté d'ici quelques mois. * Photoprism nécessite une quantité importante de RAM et de disque pour être installé et fonctionner correctement. +* Les données sont stockées dans `/home/yunohost.app/photoprism/photos/` + * Attention, ces données ne sont pas sauvegardées par défaut lorsqu'une sauvegarde est lancée + * Lors de la première installation, il vous sera demandé de fournir des informations d'identification. * Le nom d'utilisateur est "admin". * Le mot de passe est celui que vous avez défini lors de l'installation. From 861dedd53c62c12d2592bd588b77580e283de1ce Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 5 Aug 2022 10:15:23 +0200 Subject: [PATCH 16/18] ynh_exec_warn_less --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index a744933..d50ebd9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -187,7 +187,7 @@ yunohost service add $app --description="AI-Powered Photos App for the Decentral #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="http: starting web server at" +ynh_exec_warn_less ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="http: starting web server at" #================================================= # RELOAD NGINX From b4e7c3650d0a3aa2e0e4660d8832f1f288169482 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 5 Aug 2022 10:15:50 +0200 Subject: [PATCH 17/18] ynh_exec_warn_less --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index d737481..78ffe43 100755 --- a/scripts/restore +++ b/scripts/restore @@ -132,7 +132,7 @@ yunohost service add $app --description="AI-Powered Photos App for the Decentral #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="http: starting web server at" +ynh_exec_warn_less ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="http: starting web server at" #================================================= # GENERIC FINALIZATION From a6778b79e5102e8cae9437808af241eb19cc121e Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 5 Aug 2022 13:04:31 +0000 Subject: [PATCH 18/18] Auto-update README --- README.md | 5 ++++- README_fr.md | 39 +++++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index a7764aa..45b21de 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ PhotoPrism® is an AI-Powered Photos App for the Decentralized Web. It makes use - Automatic classification of pictures based on their content and location -**Shipped version:** 2022.06.17~ynh1 +**Shipped version:** 2022.07.30~ynh1 **Demo:** https://demo-fr.photoprism.app @@ -44,6 +44,9 @@ PhotoPrism® is an AI-Powered Photos App for the Decentralized Web. It makes use * Photoprism currently supports only one user. OIDC should be supported within a few months * Photoprism requires an important amount of RAM and disk to install or to work properly +* All data is stored in `/home/yunohost.app/photoprism/photos/` + * Be careful, this data is not backed-up by default when doing a backup + * At first install, you'll be prompted for credentials * Username is "admin" * Password is the password you have set during the installation diff --git a/README_fr.md b/README_fr.md index a3126d2..2694617 100644 --- a/README_fr.md +++ b/README_fr.md @@ -15,19 +15,19 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour ## Vue d'ensemble -PhotoPrism® is an AI-Powered Photos App for the Decentralized Web. It makes use of the latest technologies to tag and find pictures automatically without getting in your way. You can run it at home, on a private server, or in the cloud. +PhotoPrism® est une application de photos alimentée par l'IA pour le Web décentralisé. Elle utilise les dernières technologies pour étiqueter et trouver des photos automatiquement, sans se mettre en travers de votre chemin. Vous pouvez l'utiliser chez vous, sur un serveur privé ou dans le nuage. -### Features +### Fonctionnalités -- Browse all your photos and videos without worrying about RAW conversion, duplicates or video formats -- Easily find specific pictures using powerful search filters -- Includes four high-resolution world maps to bring back the memories of your favorite trips -- Play Live Photos™ by hovering over them in albums and search results -- Recognizes the faces of your family and friends -- Automatic classification of pictures based on their content and location +- Parcourez toutes vos photos et vidéos sans vous soucier de la conversion RAW, des doublons ou des formats vidéo +- Retrouvez facilement des photos spécifiques grâce à des filtres de recherche puissants +- Inclut quatre cartes du monde en haute résolution pour raviver les souvenirs de vos voyages préférés +- Lancez les Photos Live™ en les survolant dans les albums et les résultats de recherche +- Reconnaît les visages de votre famille et de vos amis +- Classification automatique des photos en fonction de leur contenu et de leur emplacement -**Version incluse :** 2022.06.17~ynh1 +**Version incluse :** 2022.07.30~ynh1 **Démo :** https://demo-fr.photoprism.app @@ -37,16 +37,19 @@ PhotoPrism® is an AI-Powered Photos App for the Decentralized Web. It makes use ## Avertissements / informations importantes -* Known limitations: - * Although reaching level 7, Photoprism hasn't yet been extensively tested in real conditions - * Please use with **extreme care** if you install it on a test server ! - * Not tested yet with AMD architecture - * Photoprism currently supports only one user. OIDC should be supported within a few months - * Photoprism requires an important amount of RAM and disk to install or to work properly +* Limites connues : + * Bien qu'ayant atteint le niveau 7, Photoprism n'a pas encore été testé de manière approfondie en conditions réelles. + * Veuillez l'utiliser avec **extrême prudence** si vous l'installez sur un serveur de test ! + * Pas encore testé avec l'architecture AMD + * Photoprism ne supporte actuellement qu'un seul utilisateur. OIDC devrait être supporté d'ici quelques mois. + * Photoprism nécessite une quantité importante de RAM et de disque pour être installé et fonctionner correctement. -* At first install, you'll be prompted for credentials - * Username is "admin" - * Password is the password you have set during the installation +* Les données sont stockées dans `/home/yunohost.app/photoprism/photos/` + * Attention, ces données ne sont pas sauvegardées par défaut lorsqu'une sauvegarde est lancée + +* Lors de la première installation, il vous sera demandé de fournir des informations d'identification. + * Le nom d'utilisateur est "admin". + * Le mot de passe est celui que vous avez défini lors de l'installation. ## Documentations et ressources