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

[fix] unzip in /tmp and not in current directory.

This commit is contained in:
Moul 2016-06-18 13:31:53 +00:00
parent bbc5cc96a7
commit 8da76b42c3
2 changed files with 4 additions and 4 deletions

View file

@ -36,8 +36,8 @@ sudo mkdir -p $src_path
# Retrieve sources and install them
version=$(cat ../conf/upstream_version)
wget -nc --quiet https://github.com/pluxml/PluXml/archive/$version.zip -P /tmp
sudo unzip -q /tmp/$version.zip
sudo mv PluXml-$version/* $src_path
sudo unzip -q /tmp/$version.zip -d /tmp
sudo mv /tmp/PluXml-$version/* $src_path
# Set permissions
sudo chown -R root: $src_path

View file

@ -23,9 +23,9 @@ sudo mkdir -p $src_path
# Retrieve sources and install them
version=$(cat ../conf/upstream_version)
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 -d /tmp
# Copy only core data and do not erase data
sudo cp -r PluXml-$version/{config.php,core,feed.php,index.php,sitemap.php,update} $src_path
sudo cp -r /tmp/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,plugins}