mirror of
https://github.com/YunoHost-Apps/abantecart_ynh.git
synced 2024-09-03 18:06:16 +02:00
Merge pull request #4 from polytan02/patch-1
Download sources and check md5 instead of clone git rep
This commit is contained in:
commit
e915ecaf7e
5 changed files with 12 additions and 1 deletions
|
@ -63,7 +63,14 @@ fi
|
|||
|
||||
# Copy files to the right place
|
||||
final_path=/var/www/$app
|
||||
sudo git clone https://github.com/abantecart/abantecart-src.git /var/www/$app
|
||||
|
||||
# We download the sources and check the md5sum
|
||||
SFILE=`sudo cat ../sources/source_file`;
|
||||
sudo wget -nv -i ../sources/source_url -O ${SFILE}.tar.gz
|
||||
sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false)
|
||||
sudo tar xvf ${SFILE}.tar.gz -C ../sources/
|
||||
sudo cp -a ../sources/abantecart-src-master/. $final_path
|
||||
|
||||
sudo rm -rf $final_path/tests
|
||||
sudo rm -rf $final_path/install.txt
|
||||
sudo mv $final_path/public_html/* $final_path/
|
||||
|
|
1
sources/source_file
Normal file
1
sources/source_file
Normal file
|
@ -0,0 +1 @@
|
|||
AbanteCart_1.2.9
|
1
sources/source_md5
Normal file
1
sources/source_md5
Normal file
|
@ -0,0 +1 @@
|
|||
73cec9b57291e022599d83a403510c22 AbanteCart_1.2.9.tar.gz
|
1
sources/source_upgrade
Normal file
1
sources/source_upgrade
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/abantecart/abantecart-src/releases/download/1.2.9/abantecart_1.2.9_upgrade_only.tar.gz
|
1
sources/source_url
Normal file
1
sources/source_url
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/abantecart/abantecart-src/releases/download/1.2.9/AbanteCart_1.2.9.tar.gz
|
Loading…
Add table
Reference in a new issue