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