mirror of
https://github.com/YunoHost-Apps/leed_ynh.git
synced 2024-09-03 19:26:32 +02:00
source en téléchargement
This commit is contained in:
parent
8472c7db47
commit
eab7427491
6 changed files with 15 additions and 4 deletions
|
@ -113,10 +113,14 @@ sudo yunohost app setting $app mysqlpwd -v $db_pwd
|
|||
sudo mkdir "$final_path"
|
||||
sudo yunohost app setting $app final_path -v $final_path
|
||||
|
||||
# Télécharge la source
|
||||
wget -nv --show-progress -i ../sources/source_url -O leed.tar.gz
|
||||
# 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/leed.tar.gz
|
||||
tar -x -f leed.tar.gz
|
||||
# Copie les fichiers sources
|
||||
sudo cp -a leed/. "$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"
|
||||
# Et copie le fichier de config nginx
|
||||
|
|
|
@ -13,10 +13,14 @@ admin=$(sudo yunohost app setting $app admin)
|
|||
is_public=$(sudo yunohost app setting $app is_public)
|
||||
|
||||
|
||||
# Télécharge la source
|
||||
wget -nv --show-progress -i ../sources/source_url -O leed.tar.gz
|
||||
# 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/leed.tar.gz
|
||||
tar -x -f leed.tar.gz
|
||||
# Copie les fichiers sources
|
||||
sudo cp -a leed/. "$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"
|
||||
# Et copie le fichier de config nginx
|
||||
|
|
Binary file not shown.
1
sources/source_dir
Normal file
1
sources/source_dir
Normal file
|
@ -0,0 +1 @@
|
|||
Leed-1.7
|
1
sources/source_md5
Normal file
1
sources/source_md5
Normal file
|
@ -0,0 +1 @@
|
|||
f54a18cef71704be85e7b963cff19357 leed.tar.gz
|
1
sources/source_url
Normal file
1
sources/source_url
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/ldleman/Leed/archive/v1.7.tar.gz
|
Loading…
Reference in a new issue