From d087ae95ef6d2786048bb9a9c1b33ed30a45abef Mon Sep 17 00:00:00 2001 From: magikcypress Date: Wed, 8 Mar 2017 18:03:26 +0100 Subject: [PATCH] Delete sudo before find [upgrade] --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 057d03b..f892aab 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 root, www-data can just read -sudo find $final_path -type f -print0 | sudo xargs -0 chmod 0644 -sudo find $final_path -type d -print0 | sudo xargs -0 chmod 0755 +find $final_path -type f -print0 | sudo xargs -0 chmod 0644 +find $final_path -type d -print0 | sudo xargs -0 chmod 0755 sudo chown -R root: $final_path # except for conf, data, some data subfolders, and lib/plugin, where www-data must have write permissions