From ef54c7dd66b25c9ea00d869b86ad4ea2ce029a6f Mon Sep 17 00:00:00 2001 From: Moul Date: Wed, 15 Jun 2016 20:03:26 +0000 Subject: [PATCH] [enh] use brackets. --- scripts/install | 3 +-- scripts/upgrade | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index bc7a192..598a6d9 100644 --- a/scripts/install +++ b/scripts/install @@ -44,8 +44,7 @@ sudo find $src_path -type f -name ".htaccess" | xargs sudo rm #setup permissions sudo chown -R root: $src_path -sudo chown -R www-data: $src_path/data -sudo chown -R www-data: $src_path/plugins +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 diff --git a/scripts/upgrade b/scripts/upgrade index 11c8476..d81eded 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,12 +20,10 @@ version=$(cat ../conf/upstream_version) wget -nc --quiet https://github.com/pluxml/PluXml/archive/$version.zip -P /tmp sudo unzip -q /tmp/$version.zip # Copy only core data and do not erase data -sudo cp -r PluXml-$version/config.php PluXml-$version/core PluXml-$version/feed.php \ -PluXml-$version/index.php PluXml-$version/sitemap.php PluXml-$version/update $src_path +sudo cp -r PluXml-$version/{config.php,core,feed.php,index.php,sitemap.php,update} $src_path sudo chown -R root: $src_path -sudo chown -R www-data: $src_path/data -sudo chown -R www-data: $src_path/plugins +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