From c8672ad447edd323c68dae14b83096b2fe20eff8 Mon Sep 17 00:00:00 2001 From: lapineige Date: Wed, 3 May 2023 20:03:36 +0200 Subject: [PATCH 01/13] ENABLE_CONFIG_CACHE=1 --- conf/.env | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/.env b/conf/.env index 71627f31..74dcc85d 100644 --- a/conf/.env +++ b/conf/.env @@ -143,3 +143,6 @@ TRUST_PROXIES="*" ## Passport #PASSPORT_PRIVATE_KEY= #PASSPORT_PUBLIC_KEY= + +# Edit this from admin UI +ENABLE_CONFIG_CACHE=true From 16ff1025264b5d984148c5474dd920cab1f5d13b Mon Sep 17 00:00:00 2001 From: lapineige Date: Thu, 4 May 2023 11:46:49 +0200 Subject: [PATCH 02/13] Fix config/filesystems.php local driver permissions https://github.com/YunoHost-Apps/pixelfed_ynh/issues/211 --- scripts/upgrade | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c2254f3d..e5afb20f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -184,13 +184,17 @@ ynh_add_nginx_config # UPDATE COMPOSER DEPENDENCIES #================================================= ynh_script_progression --message="Updating composer..." --weight=1 - ynh_exec_warn_less ynh_composer_exec --workdir="$final_path" --commands="self-update" ynh_script_progression --message="Updating composer dependencies..." --weight=1 - ynh_exec_warn_less ynh_composer_exec --workdir="$final_path" --commands="update" +#================================================= +# PATCH PERMISSIONS for v0.11.5 versions and higher +#================================================= +ynh_script_progression --message="Patching permissions (for version 0.11.5 and newer)..." --weight=1 +ynh_replace_string --match_string="'private' => 0700," --replace_string="'private' => 0750," --target_file=$final_path/config/filesystems.php + #================================================= # DEPLOYMENT #================================================= From 24f3a630a646fed036a0a09c422afa8b30323a04 Mon Sep 17 00:00:00 2001 From: lapineige Date: Thu, 4 May 2023 11:49:10 +0200 Subject: [PATCH 03/13] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 705867c3..ad74648b 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "ActivityPub Federated Image Sharing", "fr": "Logiciel de partage d'image fédéré via ActivityPub" }, - "version": "0.11.6~ynh1", + "version": "0.11.6~ynh2", "url": "https://pixelfed.org/", "upstream": { "license": "AGPL-3.0-or-later", From 17b54be0ac909fee05e67a948d7ad4daca50f1c1 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 4 May 2023 09:49:14 +0000 Subject: [PATCH 04/13] 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 10cffdfc..53554d74 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ In addition to taking over the functionality of Instagram, the functioning of Pi It is also possible to import your data from Instagram. -**Shipped version:** 0.11.6~ynh1 +**Shipped version:** 0.11.6~ynh2 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 795db7c2..d20a96ca 100644 --- a/README_fr.md +++ b/README_fr.md @@ -26,7 +26,7 @@ En plus de reprendre les fonctionnalités d'Instagram, le fonctionnement de Pixe Il est également possible d'importer ses données depuis Instagram. -**Version incluse :** 0.11.6~ynh1 +**Version incluse :** 0.11.6~ynh2 ## Captures d’écran From cb640d3c62736f85636f15a06ef639bcf12c238f Mon Sep 17 00:00:00 2001 From: lapineige Date: Thu, 4 May 2023 12:12:51 +0200 Subject: [PATCH 05/13] Remove config cache Revert https://github.com/YunoHost-Apps/pixelfed_ynh/pull/215/commits/c8672ad447edd323c68dae14b83096b2fe20eff8 --- conf/.env | 3 --- 1 file changed, 3 deletions(-) diff --git a/conf/.env b/conf/.env index 74dcc85d..71627f31 100644 --- a/conf/.env +++ b/conf/.env @@ -143,6 +143,3 @@ TRUST_PROXIES="*" ## Passport #PASSPORT_PRIVATE_KEY= #PASSPORT_PUBLIC_KEY= - -# Edit this from admin UI -ENABLE_CONFIG_CACHE=true From 0a97f36c4e640f7a8294700175f7b76779b0dccb Mon Sep 17 00:00:00 2001 From: lapineige Date: Thu, 4 May 2023 14:54:10 +0200 Subject: [PATCH 06/13] Patch broken permissions #211 --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e5afb20f..51213c1b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -193,7 +193,10 @@ ynh_exec_warn_less ynh_composer_exec --workdir="$final_path" --commands="update" # PATCH PERMISSIONS for v0.11.5 versions and higher #================================================= ynh_script_progression --message="Patching permissions (for version 0.11.5 and newer)..." --weight=1 +# Default configuration doesn't work ynh_replace_string --match_string="'private' => 0700," --replace_string="'private' => 0750," --target_file=$final_path/config/filesystems.php +# Repair permissions for files created after v0.11.5 and before this patch +chmod 750 -R "$final_path/public/storage/m/_v2/" #================================================= # DEPLOYMENT From 2d149fd9f63d09a60a0eef5ec1c6151bc2d331c7 Mon Sep 17 00:00:00 2001 From: lapineige Date: Thu, 4 May 2023 20:43:13 +0200 Subject: [PATCH 07/13] Update php-fpm.conf https://github.com/YunoHost-Apps/pixelfed_ynh/issues/211#issuecomment-1535026590 --- conf/php-fpm.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index b4c2372f..73d36ee2 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -21,7 +21,7 @@ ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. user = __USER__ -group = __USER__ +group = www-data ; The address on which to accept FastCGI requests. ; Valid syntaxes are: From 7b330d30478d488790bf437898d26daa45009c03 Mon Sep 17 00:00:00 2001 From: lapineige Date: Thu, 4 May 2023 23:06:33 +0200 Subject: [PATCH 08/13] Check if folder exist before chmod (fix CI) --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 51213c1b..d86f3486 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -196,7 +196,9 @@ ynh_script_progression --message="Patching permissions (for version 0.11.5 and n # Default configuration doesn't work ynh_replace_string --match_string="'private' => 0700," --replace_string="'private' => 0750," --target_file=$final_path/config/filesystems.php # Repair permissions for files created after v0.11.5 and before this patch -chmod 750 -R "$final_path/public/storage/m/_v2/" +if [ -d "$final_path/public/storage/m/_v2/" ]; then + chmod 750 -R "$final_path/public/storage/m/_v2/" +fi #================================================= # DEPLOYMENT From 56e0cc1847c40c0e00b52b1247c5650f96d40ae3 Mon Sep 17 00:00:00 2001 From: lapineige Date: Fri, 5 May 2023 19:11:51 +0200 Subject: [PATCH 09/13] Fix rights --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index d86f3486..59c4d1f9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -197,7 +197,9 @@ ynh_script_progression --message="Patching permissions (for version 0.11.5 and n ynh_replace_string --match_string="'private' => 0700," --replace_string="'private' => 0750," --target_file=$final_path/config/filesystems.php # Repair permissions for files created after v0.11.5 and before this patch if [ -d "$final_path/public/storage/m/_v2/" ]; then - chmod 750 -R "$final_path/public/storage/m/_v2/" + chmod 750 -R "$final_path/public/storage/m/_v2/*" # all files subdirectories (picture folders) should be readable and executable. But if there is no picture, there is no /*/* + chmod 770 "$final_path/public/storage/m/_v2/" # this should be 770 + chmod 770 "$final_path/public/storage/m/_v2/*" # users folders should be 770 fi #================================================= From 7c471bb6b87be37c8119e7a83baa53bc6b6391b7 Mon Sep 17 00:00:00 2001 From: lapineige Date: Mon, 8 May 2023 23:04:39 +0200 Subject: [PATCH 10/13] fix wildcard syntax It doesn't work within quotes --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 59c4d1f9..3826778a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -197,7 +197,7 @@ ynh_script_progression --message="Patching permissions (for version 0.11.5 and n ynh_replace_string --match_string="'private' => 0700," --replace_string="'private' => 0750," --target_file=$final_path/config/filesystems.php # Repair permissions for files created after v0.11.5 and before this patch if [ -d "$final_path/public/storage/m/_v2/" ]; then - chmod 750 -R "$final_path/public/storage/m/_v2/*" # all files subdirectories (picture folders) should be readable and executable. But if there is no picture, there is no /*/* + chmod 750 -R "$final_path/public/storage/m/_v2/"* # all files subdirectories (picture folders) should be readable and executable. But if there is no picture, there is no /*/* chmod 770 "$final_path/public/storage/m/_v2/" # this should be 770 chmod 770 "$final_path/public/storage/m/_v2/*" # users folders should be 770 fi From a4c8867762cc5c9904617a01ebf3556bb4c332f1 Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 9 May 2023 10:31:34 +0200 Subject: [PATCH 11/13] Fix the other wildcard + reordering --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3826778a..9388a218 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -198,8 +198,8 @@ ynh_replace_string --match_string="'private' => 0700," --replace_string="'privat # Repair permissions for files created after v0.11.5 and before this patch if [ -d "$final_path/public/storage/m/_v2/" ]; then chmod 750 -R "$final_path/public/storage/m/_v2/"* # all files subdirectories (picture folders) should be readable and executable. But if there is no picture, there is no /*/* + chmod 770 "$final_path/public/storage/m/_v2/"* # users folders should be 770 chmod 770 "$final_path/public/storage/m/_v2/" # this should be 770 - chmod 770 "$final_path/public/storage/m/_v2/*" # users folders should be 770 fi #================================================= From 311640b14c53a299332603c0bdd55d1f2936b817 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 25 May 2023 06:03:13 +0000 Subject: [PATCH 12/13] Upgrade to v0.11.7 --- conf/app.src | 4 ++-- manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/app.src b/conf/app.src index a3d25fa9..821e92a5 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/pixelfed/pixelfed/archive/refs/tags/v0.11.6.tar.gz -SOURCE_SUM=da498b0e93308ac501c3c97b41af6d695b29811807aeb8c1071e06fec385d967 +SOURCE_URL=https://github.com/pixelfed/pixelfed/archive/refs/tags/v0.11.7.tar.gz +SOURCE_SUM=eb27aa61c337c3dbca3c0e59cbd86069da1dbc7dea988630d3453cd92dcc75e7 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index ad74648b..a57868d6 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "ActivityPub Federated Image Sharing", "fr": "Logiciel de partage d'image fédéré via ActivityPub" }, - "version": "0.11.6~ynh2", + "version": "0.11.7~ynh1", "url": "https://pixelfed.org/", "upstream": { "license": "AGPL-3.0-or-later", From a788a986068432d7293cfbc2c23257716d770614 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 25 May 2023 06:03:20 +0000 Subject: [PATCH 13/13] 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 53554d74..184a98a4 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ In addition to taking over the functionality of Instagram, the functioning of Pi It is also possible to import your data from Instagram. -**Shipped version:** 0.11.6~ynh2 +**Shipped version:** 0.11.7~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index d20a96ca..4a54b31b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -26,7 +26,7 @@ En plus de reprendre les fonctionnalités d'Instagram, le fonctionnement de Pixe Il est également possible d'importer ses données depuis Instagram. -**Version incluse :** 0.11.6~ynh2 +**Version incluse :** 0.11.7~ynh1 ## Captures d’écran