1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pluxml_ynh.git synced 2024-09-03 20:16:02 +02:00

[enh] use brackets.

This commit is contained in:
Moul 2016-06-15 20:03:26 +00:00
parent ace2454039
commit ef54c7dd66
2 changed files with 3 additions and 6 deletions

View file

@ -44,8 +44,7 @@ sudo find $src_path -type f -name ".htaccess" | xargs sudo rm
#setup permissions #setup permissions
sudo chown -R root: $src_path sudo chown -R root: $src_path
sudo chown -R www-data: $src_path/data sudo chown -R www-data: $src_path/{data,plugins}
sudo chown -R www-data: $src_path/plugins
sudo find $src_path -type f | xargs sudo chmod 644 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 d | xargs sudo chmod 755

View file

@ -20,12 +20,10 @@ version=$(cat ../conf/upstream_version)
wget -nc --quiet https://github.com/pluxml/PluXml/archive/$version.zip -P /tmp wget -nc --quiet https://github.com/pluxml/PluXml/archive/$version.zip -P /tmp
sudo unzip -q /tmp/$version.zip sudo unzip -q /tmp/$version.zip
# Copy only core data and do not erase data # Copy only core data and do not erase data
sudo cp -r PluXml-$version/config.php PluXml-$version/core PluXml-$version/feed.php \ sudo cp -r PluXml-$version/{config.php,core,feed.php,index.php,sitemap.php,update} $src_path
PluXml-$version/index.php PluXml-$version/sitemap.php PluXml-$version/update $src_path
sudo chown -R root: $src_path sudo chown -R root: $src_path
sudo chown -R www-data: $src_path/data sudo chown -R www-data: $src_path/{data,plugins}
sudo chown -R www-data: $src_path/plugins
sudo find $src_path -type f | xargs sudo chmod 644 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 d | xargs sudo chmod 755