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:
parent
bbc5cc96a7
commit
8da76b42c3
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue