1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Merge pull request #173 from YunoHost-Apps/fix-env-permissions

Fix .env permission (admin panel access to the config file)
This commit is contained in:
lapineige 2022-05-11 19:06:56 +02:00 committed by GitHub
commit e046034549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -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
}
]

View file

@ -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"
#=================================================

View file

@ -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