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

source en téléchargement

This commit is contained in:
Maniack Crudelis 2016-06-05 18:49:41 +02:00
parent 4131db1747
commit f455cdd60a
7 changed files with 15 additions and 5 deletions

View file

@ -113,10 +113,14 @@ sudo mv "$final_path/regex.py" /opt/yunohost/$app/lib/python*/site-packages/radi
sudo rm /opt/yunohost/$app/lib/python*/site-packages/radicale/rights/regex.pyc
if [ "$infcloud" = "1" ]
then #Instal InfCloud
# Télécharge la source
wget -nv --show-progress -i ../sources/source_url -O infcloud.zip
# Vérifie la somme de contrôle de la source téléchargée.
md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" && false)
# Décompresse la source
tar -x -f ../sources/infcloud.tar.gz
unzip -q infcloud.zip
# Copie les fichiers sources
sudo cp -a infcloud "$final_path/"
sudo cp -a $(cat ../sources/source_dir)/. "$final_path"
# Copie les fichiers additionnels ou modifiés.
sudo cp -a ../sources/ajouts_infcloud/. "$final_path/infcloud/"
fi

View file

@ -46,10 +46,14 @@ sudo mv "$final_path/regex.py" /opt/yunohost/$app/lib/python*/site-packages/radi
sudo rm /opt/yunohost/$app/lib/python*/site-packages/radicale/rights/regex.pyc
if [ "$infcloud" = "1" ]
then #Instal InfCloud
# Télécharge la source
wget -nv --show-progress -i ../sources/source_url -O infcloud.zip
# Vérifie la somme de contrôle de la source téléchargée.
md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" && false)
# Décompresse la source
tar -x -f ../sources/infcloud.tar.gz
unzip -q infcloud.zip
# Copie les fichiers sources
sudo cp -a infcloud "$final_path/"
sudo cp -a $(cat ../sources/source_dir)/. "$final_path"
# Copie les fichiers additionnels ou modifiés.
sudo cp -a ../sources/ajouts/. "$final_path/infcloud/"
fi

Binary file not shown.

1
sources/source_dir Normal file
View file

@ -0,0 +1 @@
infcloud

1
sources/source_md5 Normal file
View file

@ -0,0 +1 @@
6ffb1b3b9b7f54137723c6c13e9c5635 infcloud.zip

1
sources/source_url Normal file
View file

@ -0,0 +1 @@
https://www.inf-it.com/InfCloud_0.13.1.zip

View file

@ -1 +0,0 @@