diff --git a/README.md b/README.md index 6bd543cf..39d96724 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.8~ynh4 +**Shipped version:** 0.11.8~ynh5 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 77506aa1..d9c882a9 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.8~ynh4 +**Version incluse :** 0.11.8~ynh5 ## Captures d’écran diff --git a/manifest.toml b/manifest.toml index 601aebc4..015ed498 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Pixelfed" description.en = "ActivityPub Federated Image Sharing" description.fr = "Logiciel de partage d'image fédéré via ActivityPub" -version = "0.11.8~ynh4" +version = "0.11.8~ynh5" maintainers = ["yalh76", "Lapineige"] diff --git a/scripts/install b/scripts/install index e89873f7..8cffce4f 100644 --- a/scripts/install +++ b/scripts/install @@ -143,6 +143,14 @@ 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=$install_dir/config/filesystems.php +# Repair permissions for files created after v0.11.5 and before this patch +if [ -d "$install_dir/public/storage/m/_v2/" ]; then + chmod 750 -R "$install_dir/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 "$install_dir/public/storage/m/_v2/"* # users folders should be 770 + chmod 770 "$install_dir/public/storage/m/_v2/" # this should be 770 + chown -R :www-data "$install_dir/public/storage/m/_v2/" # Fix the mess following packaging v2 upgrade - and make sure proper group owner is set. +fi + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================