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:
parent
ace2454039
commit
ef54c7dd66
2 changed files with 3 additions and 6 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue