diff --git a/manifest.json b/manifest.json index 4187cf56..cb6a2d2e 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 } ] diff --git a/scripts/install b/scripts/install index 68e7eb48..bf0cd7fa 100644 --- a/scripts/install +++ b/scripts/install @@ -143,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" #================================================= 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