mirror of
https://github.com/YunoHost-Apps/abantecart_ynh.git
synced 2024-09-03 18:06:16 +02:00
Download sources and check md5 instead of clone git rep
This commit is contained in:
parent
0b8b2f22ac
commit
deeb827e9a
1 changed files with 8 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/
|
||||
|
|
Loading…
Add table
Reference in a new issue