1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zerobin_ynh.git synced 2024-09-03 18:06:01 +02:00

[fix] owner root root directory

This commit is contained in:
magikcypress 2017-04-17 19:49:45 +02:00
parent 3f81447f36
commit 37ce42d372
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ ynh_system_user_create $app
# Files owned by user specific can just read
sudo find $final_path -type f | xargs sudo chmod 644
sudo find $final_path -type d | xargs sudo chmod 755
sudo chown -R $app: $final_path
sudo chown -R root: $final_path
# except for data and tmp subdir, where www-data must have write permissions
sudo mkdir -p $final_path/{data,tmp}

View file

@ -49,7 +49,7 @@ extract_source $final_path
# Files owned by root, www-data can just read
sudo find $final_path -type f | xargs sudo chmod 644
sudo find $final_path -type d | xargs sudo chmod 755
sudo chown -R $app: $final_path
sudo chown -R root: $final_path
# except for data and tmp subdir, where www-data must have write permissions
sudo mkdir -p $final_path/{data,tmp}