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

[enh] install: retrieve sources from upstream.

This commit is contained in:
Moul 2016-06-15 19:10:02 +00:00
parent 69e3595904
commit ff561be203

View file

@ -35,8 +35,11 @@ sudo yunohost app setting $app path -v "$path"
src_path=/var/www/$app
sudo mkdir -p $src_path
#copy files to src folder and set permissions
sudo cp -R ../sources/* $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 find $src_path -type f -name ".htaccess" | xargs sudo rm
#setup permissions