From 59647f85b8e2d88563d4b17e482b1ab18902d1cb Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 23 Dec 2016 20:56:43 +0000 Subject: [PATCH] Adjustments on md5sum --- scripts/install | 5 +++-- scripts/upgrade | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index d2e06e1..fc1afbe 100755 --- a/scripts/install +++ b/scripts/install @@ -60,9 +60,10 @@ sudo mkdir -p $final_path # We download the sources and check the md5sum cops_file=`sudo cat ../sources/source_file`; -sudo wget -nv -i ../sources/source_url -P ../sources/ +sudo wget -nv -i ../sources/source_url sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false) -sudo unzip ../sources/${cops_file} -d $final_path +sudo unzip ${cops_file} -d $final_path +sudo rm -f ${cops_file} # Site adjustments sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../conf/config_local.php diff --git a/scripts/upgrade b/scripts/upgrade index 83ef41c..9bbfb62 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,9 +38,10 @@ sudo mkdir -p $final_path # We download the sources and check the md5sum cops_file=`sudo cat ../sources/source_file`; -sudo wget -nv -i ../sources/source_url -P ../sources/ +sudo wget -nv -i ../sources/source_url -P sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false) -sudo unzip ../sources/${cops_file} -d $final_path +sudo unzip ${cops_file} -d $final_path +sudo rm -f ${cops_file} # Site adjustments sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../conf/config_local.php