From ebc5ea163f97255b9c2228864428b97a501396e4 Mon Sep 17 00:00:00 2001 From: ewilly Date: Wed, 29 Jun 2016 00:11:40 +0200 Subject: [PATCH] Avoid error when space in filename (#22) --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9f826c9..c2a9c8f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,8 +29,8 @@ sudo cp -r /tmp/PluXml-$version/{config.php,core,feed.php,index.php,sitemap.php, sudo chown -R root: $src_path sudo chown -R www-data: $src_path/{data,plugins} -sudo find $src_path -type f | xargs sudo chmod 644 -sudo find $src_path -type d | xargs sudo chmod 755 +sudo find $src_path -type f -exec chmod 644 {} + +sudo find $src_path -type d -exec chmod 755 {} + #configure nginx settings folder_path=${path%/}