From 5f24c86ee26383857640e1d41d18ff6f650a0c9d Mon Sep 17 00:00:00 2001 From: ewilly Date: Wed, 29 Jun 2016 00:11:20 +0200 Subject: [PATCH 1/2] Avoid error when space in filename (here too) (#23) --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index c9f1270..1e6c714 100644 --- a/scripts/install +++ b/scripts/install @@ -42,8 +42,8 @@ sudo mv /tmp/PluXml-$version/* $src_path # Set permissions 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%/} From ebc5ea163f97255b9c2228864428b97a501396e4 Mon Sep 17 00:00:00 2001 From: ewilly Date: Wed, 29 Jun 2016 00:11:40 +0200 Subject: [PATCH 2/2] 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%/}