From d866b8c66d2dc7b032920bcd74e452cf65a2ae7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 8 Nov 2022 15:38:54 +0100 Subject: [PATCH 1/5] Change database character set to utf8mb4 --- scripts/install | 4 ++++ scripts/upgrade | 3 +++ 2 files changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index 82d1c4a4..254f1778 100755 --- a/scripts/install +++ b/scripts/install @@ -89,6 +89,10 @@ ynh_app_setting_set --app=$app --key=db_name --value=$db_name if [ $database = "mysql" ]; then ynh_script_progression --message="Creating a MySQL database..." --weight=1 ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name + + ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \ + <<< "ALTER DATABASE $db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;" + db_type=0 elif [ $database = "postgresql" ]; then ynh_script_progression --message="Creating a PostgreSQL database..." --weight=1 diff --git a/scripts/upgrade b/scripts/upgrade index 49a41324..a4b92043 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -149,6 +149,9 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1 if [ $database = "mysql" ]; then db_type=0 db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) + # Change your databases character set and collation + ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \ + <<< "ALTER DATABASE $db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;" elif [ $database = "postgresql" ]; then db_type=1 db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) From 418d1e4d7c2a50977ca29121d13cee26239ba3f9 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 14 Nov 2022 06:11:58 +0000 Subject: [PATCH 2/5] Upgrade to v7.8.6 --- conf/app.src | 4 ++-- conf/app_addons.src | 4 ++-- manifest.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/app.src b/conf/app.src index bb763b18..55f8b626 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://framagit.org/hubzilla/core/-/archive/7.8.3/core-7.8.3.tar.gz -SOURCE_SUM=ca128109b1f205b280b9eab71cfa9b511bced6c15adea80fa28d3a2a1c401d14 +SOURCE_URL=https://framagit.org/hubzilla/core/-/archive/7.8.6/core-7.8.6.tar.gz +SOURCE_SUM=49b2416a53c145d9f62d0bfe0eadcbdc1ef7d62f28d44187e76199dbf0f24a33 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/app_addons.src b/conf/app_addons.src index d21c58ff..a0c10a3a 100644 --- a/conf/app_addons.src +++ b/conf/app_addons.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://framagit.org/hubzilla/addons/-/archive/7.8.3/addons-7.8.3.tar.gz -SOURCE_SUM=e132086c9db1c71df25656808417305586f6b96fc8f13d02f8502c6409e3bc09 +SOURCE_URL=https://framagit.org/hubzilla/addons/-/archive/7.8.6/addons-7.8.6.tar.gz +SOURCE_SUM=2667bebe174ec1883fc1f35caa239ea641e2f94e514548ac50722938538441f3 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index c5f333c8..52923654 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Decentralized publication platform and social network.", "fr": "Plateforme de publication décentralisée et un réseau social." }, - "version": "7.8.3~ynh1", + "version": "7.8.6~ynh1", "url": "https://zotlabs.org/page/hubzilla/hubzilla-project", "upstream": { "license": "MIT", From a2a8ccadc9d46a0561a781d3023033f1a08b5517 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 14 Nov 2022 06:12:12 +0000 Subject: [PATCH 3/5] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 969dfff7..11f77077 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in [Hubzilla](https://hub.libranet.de/directory?f=&global=1&pubforums=1) is a social networking platform built with control of your privacy at center stage. Your online communications can be as public as you wish or as private as you require. Private conversations, private photos, private videos. Your media isn't hidden behind an obscure URL which can be guessed, it is protected by state-of-the-art cross-domain authentication. What this all means for you: **less drama**. -**Shipped version:** 7.8.3~ynh1 +**Shipped version:** 7.8.6~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 7df8e7ed..8ab7f062 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour [Hubzilla](https://hub.libranet.de/directory?f=&global=1&pubforums=1) est une plate-forme de réseau social conçue avec le contrôle de votre vie privée au centre de la scène. Vos communications en ligne peuvent être aussi publiques que vous le souhaitez ou aussi privées que vous le souhaitez. Conversations privées, photos privées, vidéos privées. Votre média n'est pas caché derrière une URL obscure qui peut être devinée, il est protégé par une authentification interdomaine de pointe. Qu'est-ce que tout cela signifie pour vous : **moins de drames**. -**Version incluse :** 7.8.3~ynh1 +**Version incluse :** 7.8.6~ynh1 ## Captures d'écran From 866d441c1539a68e26a3f01bd86bc356c82a17d3 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 4 Dec 2022 06:08:59 +0000 Subject: [PATCH 4/5] Upgrade to v7.8.7 --- conf/app.src | 4 ++-- conf/app_addons.src | 4 ++-- manifest.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/app.src b/conf/app.src index bb763b18..32edabc1 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://framagit.org/hubzilla/core/-/archive/7.8.3/core-7.8.3.tar.gz -SOURCE_SUM=ca128109b1f205b280b9eab71cfa9b511bced6c15adea80fa28d3a2a1c401d14 +SOURCE_URL=https://framagit.org/hubzilla/core/-/archive/7.8.7/core-7.8.7.tar.gz +SOURCE_SUM=68d54a52a967d0fa4000f31c13fd1dace252347fbedbd43be3352b586291af2c SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/app_addons.src b/conf/app_addons.src index d21c58ff..35d02832 100644 --- a/conf/app_addons.src +++ b/conf/app_addons.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://framagit.org/hubzilla/addons/-/archive/7.8.3/addons-7.8.3.tar.gz -SOURCE_SUM=e132086c9db1c71df25656808417305586f6b96fc8f13d02f8502c6409e3bc09 +SOURCE_URL=https://framagit.org/hubzilla/addons/-/archive/7.8.7/addons-7.8.7.tar.gz +SOURCE_SUM=f6a0f688357edd158dfb2b1461083fc5d062c9532fedb3dd6b519f7a914b6705 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index c5f333c8..c228ed90 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Decentralized publication platform and social network.", "fr": "Plateforme de publication décentralisée et un réseau social." }, - "version": "7.8.3~ynh1", + "version": "7.8.7~ynh1", "url": "https://zotlabs.org/page/hubzilla/hubzilla-project", "upstream": { "license": "MIT", From 01c6ec54c426e5f60c1e158fa71efbb8368b5f78 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 4 Dec 2022 06:09:12 +0000 Subject: [PATCH 5/5] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 969dfff7..838655e8 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in [Hubzilla](https://hub.libranet.de/directory?f=&global=1&pubforums=1) is a social networking platform built with control of your privacy at center stage. Your online communications can be as public as you wish or as private as you require. Private conversations, private photos, private videos. Your media isn't hidden behind an obscure URL which can be guessed, it is protected by state-of-the-art cross-domain authentication. What this all means for you: **less drama**. -**Shipped version:** 7.8.3~ynh1 +**Shipped version:** 7.8.7~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 7df8e7ed..2965d244 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour [Hubzilla](https://hub.libranet.de/directory?f=&global=1&pubforums=1) est une plate-forme de réseau social conçue avec le contrôle de votre vie privée au centre de la scène. Vos communications en ligne peuvent être aussi publiques que vous le souhaitez ou aussi privées que vous le souhaitez. Conversations privées, photos privées, vidéos privées. Votre média n'est pas caché derrière une URL obscure qui peut être devinée, il est protégé par une authentification interdomaine de pointe. Qu'est-ce que tout cela signifie pour vous : **moins de drames**. -**Version incluse :** 7.8.3~ynh1 +**Version incluse :** 7.8.7~ynh1 ## Captures d'écran