1
0
Fork 0
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:
polytan02 2017-02-09 18:59:17 +00:00
parent 1c6b570fc6
commit 4e75f756dd
3 changed files with 5 additions and 5 deletions

View file

@ -99,9 +99,9 @@ sudo mkdir -p $final_path
# We download the sources and check the md5sum
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 tar xzvf $SFILE -C ../sources/
sudo tar xvf ${SFILE}.tar.gz -C ../sources/
sudo cp -R ../sources/$SFILE/* $final_path
# Configuration

View file

@ -60,9 +60,9 @@ sudo mkdir -p $final_path
# We download the sources and check the md5sum
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 tar xzvf $SFILE -C ../sources/
sudo tar xvf ${SFILE}.tar.gz -C ../sources/
sudo cp -R ../sources/$SFILE/* $final_path
# Configuration

View file

@ -1 +1 @@
z-push-2.3.4.tar.gz
z-push-2.3.4