diff --git a/scripts/install b/scripts/install index c03831d..cf2d4d5 100644 --- a/scripts/install +++ b/scripts/install @@ -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/ diff --git a/sources/source_file b/sources/source_file new file mode 100644 index 0000000..bffd60a --- /dev/null +++ b/sources/source_file @@ -0,0 +1 @@ +AbanteCart_1.2.9 diff --git a/sources/source_md5 b/sources/source_md5 new file mode 100644 index 0000000..a216e6a --- /dev/null +++ b/sources/source_md5 @@ -0,0 +1 @@ +73cec9b57291e022599d83a403510c22 AbanteCart_1.2.9.tar.gz diff --git a/sources/source_upgrade b/sources/source_upgrade new file mode 100644 index 0000000..59259b6 --- /dev/null +++ b/sources/source_upgrade @@ -0,0 +1 @@ +https://github.com/abantecart/abantecart-src/releases/download/1.2.9/abantecart_1.2.9_upgrade_only.tar.gz diff --git a/sources/source_url b/sources/source_url new file mode 100644 index 0000000..ec130f6 --- /dev/null +++ b/sources/source_url @@ -0,0 +1 @@ +https://github.com/abantecart/abantecart-src/releases/download/1.2.9/AbanteCart_1.2.9.tar.gz