From 7a4833633f76d050296c783e565f8cdfc913c75a Mon Sep 17 00:00:00 2001 From: lapineige Date: Sat, 16 Apr 2022 13:28:03 +0200 Subject: [PATCH 1/4] Clarify "is_public" option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit People often believe that choosing "no" would close Pixelfed registration. That will clarify that it targets Yunohost SSO and not Pixelfed login. Note: LDAP integration in Pixelfed is planned, but in the mid-time… --- manifest.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifest.json b/manifest.json index c81ffa95..4e323a05 100644 --- a/manifest.json +++ b/manifest.json @@ -45,6 +45,9 @@ { "name": "is_public", "type": "boolean", + "ask": { + "en": "Should this application be visible by visitors, without a Yunohost login ?", + "fr": "Cette application devrait-elle être visible par les visiteurs n'ayant pas de compte Yunohost ?"}, "default": true } ] From 6e2f4d89278ed3f12d42eb7906f2806665c04886 Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 17 Apr 2022 16:56:59 +0200 Subject: [PATCH 2/4] Fix .env permission (admin panel access to the config file) --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 68e7eb48..e668393e 100644 --- a/scripts/install +++ b/scripts/install @@ -100,6 +100,8 @@ ynh_setup_source --dest_dir="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +# Pixelfed app should be able to edit its settings from the admin panel +chmod 600 "$final_path"/.env #================================================= # NGINX CONFIGURATION From 695f1059b4bf6b9eb6cc6e5fd3da015314e8e57f Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 17 Apr 2022 17:00:25 +0200 Subject: [PATCH 3/4] Fix .env permission (admin panel access to the config file) --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index f2933c51..70a5c09b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -163,6 +163,9 @@ fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +# Pixelfed app should be able to edit its settings from the admin panel +chmod 600 "$final_path"/.env + #================================================= # NGINX CONFIGURATION From 0f8268bc09488dae37313695efc5c28e96a4e344 Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 19 Apr 2022 20:22:13 +0200 Subject: [PATCH 4/4] `.env` permission : fix syntax --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index e668393e..bf0cd7fa 100644 --- a/scripts/install +++ b/scripts/install @@ -100,8 +100,6 @@ ynh_setup_source --dest_dir="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -# Pixelfed app should be able to edit its settings from the admin panel -chmod 600 "$final_path"/.env #================================================= # NGINX CONFIGURATION @@ -145,7 +143,8 @@ ynh_script_progression --message="Adding a config file..." ynh_add_config --template="../conf/.env" --destination="$final_path/.env" -chmod 400 "$final_path/.env" +# Pixelfed app should be able to edit its settings from the admin panel +chmod 600 "$final_path/.env" chown $app:$app "$final_path/.env" #=================================================