1
0
Fork 0
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:
polytan02 2017-02-24 16:35:05 +00:00 committed by GitHub
parent 0b8b2f22ac
commit deeb827e9a

View file

@ -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/