1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

adjust permission to edit config.local.php

This commit is contained in:
Robles Rodolphe 2021-05-10 17:30:52 +02:00
parent 015c70b356
commit a8ff621f3b
2 changed files with 4 additions and 2 deletions

View file

@ -86,7 +86,8 @@ ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependenc
#=================================================
chown -R $app:$app $final_path
chmod 400 $final_path/config.dist.php $final_path/config.local.php $final_path/index.php $final_path/sous-domaine.html $final_path/VERSION
chmod 400 $final_path/config.dist.php $final_path/index.php $final_path/sous-domaine.html $final_path/VERSION
chmod 644 $final_path/config.local.php
find $final_path/scripts -type d -exec chmod 500 {} +
find $final_path/scripts -type f -exec chmod 400 {} +
find $final_path/templates -type d -exec chmod 500 {} +

View file

@ -207,7 +207,8 @@ fi
# Set permissions on app files
chown -R $app:$app $final_path
chmod 400 $final_path/config.dist.php $final_path/config.local.php $final_path/index.php $final_path/sous-domaine.html $final_path/VERSION
chmod 400 $final_path/config.dist.php $final_path/index.php $final_path/sous-domaine.html $final_path/VERSION
chmod 644 $final_path/config.local.php
find $final_path/scripts -type d -exec chmod 500 {} +
find $final_path/scripts -type f -exec chmod 400 {} +
find $final_path/templates -type d -exec chmod 500 {} +