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:
parent
4131db1747
commit
f455cdd60a
7 changed files with 15 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
1
sources/source_dir
Normal file
|
@ -0,0 +1 @@
|
|||
infcloud
|
1
sources/source_md5
Normal file
1
sources/source_md5
Normal file
|
@ -0,0 +1 @@
|
|||
6ffb1b3b9b7f54137723c6c13e9c5635 infcloud.zip
|
1
sources/source_url
Normal file
1
sources/source_url
Normal file
|
@ -0,0 +1 @@
|
|||
https://www.inf-it.com/InfCloud_0.13.1.zip
|
|
@ -1 +0,0 @@
|
|||
|
Loading…
Reference in a new issue