mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Use of source_file correctly
This commit is contained in:
parent
1c6b570fc6
commit
4e75f756dd
3 changed files with 5 additions and 5 deletions
|
@ -99,9 +99,9 @@ sudo mkdir -p $final_path
|
||||||
|
|
||||||
# We download the sources and check the md5sum
|
# We download the sources and check the md5sum
|
||||||
SFILE=`sudo cat ../sources/source_file`;
|
SFILE=`sudo cat ../sources/source_file`;
|
||||||
sudo wget -nv -i ../sources/source_url -O $SFILE
|
sudo wget -nv -i ../sources/source_url -O ${SFILE}.tar.gz
|
||||||
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 tar xzvf $SFILE -C ../sources/
|
sudo tar xvf ${SFILE}.tar.gz -C ../sources/
|
||||||
sudo cp -R ../sources/$SFILE/* $final_path
|
sudo cp -R ../sources/$SFILE/* $final_path
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
|
@ -60,9 +60,9 @@ sudo mkdir -p $final_path
|
||||||
|
|
||||||
# We download the sources and check the md5sum
|
# We download the sources and check the md5sum
|
||||||
SFILE=`sudo cat ../sources/source_file`;
|
SFILE=`sudo cat ../sources/source_file`;
|
||||||
sudo wget -nv -i ../sources/source_url -O $SFILE
|
sudo wget -nv -i ../sources/source_url -O ${SFILE}.tar.gz
|
||||||
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 tar xzvf $SFILE -C ../sources/
|
sudo tar xvf ${SFILE}.tar.gz -C ../sources/
|
||||||
sudo cp -R ../sources/$SFILE/* $final_path
|
sudo cp -R ../sources/$SFILE/* $final_path
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
z-push-2.3.4.tar.gz
|
z-push-2.3.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue