From deeb827e9a8388c2a4b29b0987ca25716b2f87bc Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 24 Feb 2017 16:35:05 +0000 Subject: [PATCH 1/5] Download sources and check md5 instead of clone git rep --- scripts/install | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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/ From 9b7272742d3c7b579390c4fdbef7fd31a07af1a0 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 24 Feb 2017 16:36:36 +0000 Subject: [PATCH 2/5] Create source_file --- sources/source_file | 1 + 1 file changed, 1 insertion(+) create mode 100644 sources/source_file 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 From d1cd0ebde63d727e466fafdd4f389a15f79ecbce Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 24 Feb 2017 16:37:07 +0000 Subject: [PATCH 3/5] Create source_md5 --- sources/source_md5 | 1 + 1 file changed, 1 insertion(+) create mode 100644 sources/source_md5 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 From 98c0d1843da42ca23c801172c3961824c1916937 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 24 Feb 2017 16:37:25 +0000 Subject: [PATCH 4/5] Create source_url --- sources/source_url | 1 + 1 file changed, 1 insertion(+) create mode 100644 sources/source_url 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 From e1e3d9374de60dcd4983f3eafcc1ab572ec63d8d Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 24 Feb 2017 16:49:18 +0000 Subject: [PATCH 5/5] Create source_upgrade --- sources/source_upgrade | 1 + 1 file changed, 1 insertion(+) create mode 100644 sources/source_upgrade 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