mirror of
https://github.com/YunoHost-Apps/cops_ynh.git
synced 2024-09-03 18:25:57 +02:00
Adjustments on md5sum
This commit is contained in:
parent
22a04a032d
commit
59647f85b8
2 changed files with 6 additions and 4 deletions
|
@ -60,9 +60,10 @@ sudo mkdir -p $final_path
|
||||||
|
|
||||||
# We download the sources and check the md5sum
|
# We download the sources and check the md5sum
|
||||||
cops_file=`sudo cat ../sources/source_file`;
|
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 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
|
# Site adjustments
|
||||||
sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../conf/config_local.php
|
sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../conf/config_local.php
|
||||||
|
|
|
@ -38,9 +38,10 @@ sudo mkdir -p $final_path
|
||||||
|
|
||||||
# We download the sources and check the md5sum
|
# We download the sources and check the md5sum
|
||||||
cops_file=`sudo cat ../sources/source_file`;
|
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 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
|
# Site adjustments
|
||||||
sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../conf/config_local.php
|
sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../conf/config_local.php
|
||||||
|
|
Loading…
Reference in a new issue