1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dokuwiki_ynh.git synced 2024-09-03 18:26:20 +02:00

Ajouter sudo pour le chown

This commit is contained in:
magikcypress 2017-03-08 18:31:05 +01:00
parent 10ef9d880f
commit fa67284e67
2 changed files with 4 additions and 4 deletions

View file

@ -57,8 +57,8 @@ sudo cp ../conf/dokuwiki.php $final_path/conf
sudo cp ../conf/acl.auth.php $final_path/conf
# Files owned by www-data can just read
sudo find $final_path -type f -print0 | xargs -0 chmod 0644
sudo find $final_path -type d -print0 | xargs -0 chmod 0755
sudo find $final_path -type f -print0 | xargs sudo chmod 0644
sudo find $final_path -type d -print0 | xargs sudo chmod 0755
sudo chown -R www-data: $final_path
# except for conf, data, some data subfolders, and lib/plugin, where www-data must have write permissions

View file

@ -60,8 +60,8 @@ sudo touch $final_path/doku.php
grep -Ev '^($|#)' ../sources/data/deleted.files | xargs -I {} sudo rm -vrf $final_path/{}
# Files owned by www-data can just read
sudo find $final_path -type f -print0 | xargs -0 chmod 0644
sudo find $final_path -type d -print0 | xargs -0 chmod 0755
sudo find $final_path -type f -print0 | xargs sudo chmod 0644
sudo find $final_path -type d -print0 | xargs sudo chmod 0755
sudo chown -R www-data: $final_path
# except for conf, data, some data subfolders, and lib/plugin, where www-data must have write permissions