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:
commit
e046034549
3 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue