mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
correct some permissions for thr directory /data
This commit is contained in:
parent
9c0aa9a584
commit
d2bc034bb2
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ ynh_replace_string --match_string="//require '$data_dir/data/config.local.user.p
|
||||||
if [ ! -d "$data_dir/data" ]; then
|
if [ ! -d "$data_dir/data" ]; then
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=5
|
ynh_script_progression --message="Adding a configuration file..." --weight=5
|
||||||
mkdir "$data_dir/data"
|
mkdir "$data_dir/data"
|
||||||
chown $app:www-data "$data_dir/data"
|
chmod 770 "$data_dir/data"
|
||||||
|
chown -R $app:www-data "$data_dir/data"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue