From fa67284e6744b55b71d6b82462754a85d921652f Mon Sep 17 00:00:00 2001 From: magikcypress Date: Wed, 8 Mar 2017 18:31:05 +0100 Subject: [PATCH] Ajouter sudo pour le chown --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index cf00df4..5489909 100755 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index fea7a1a..be1327a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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