1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00

Update to use file from z-push.org

This commit is contained in:
polytan02 2017-02-07 22:20:48 +00:00
parent 42a71a5bed
commit f524825a96
2 changed files with 8 additions and 12 deletions

View file

@ -98,13 +98,11 @@ ynh_app_setting_set "$app" final_phpconf "$final_phpconf"
sudo mkdir -p $final_path
# We download the sources and check the md5sum
SHA1=`sudo cat ../sources/source_sha1`;
sed -i "s@SHA1TOCHANGE@$SHA1@g" ../sources/source_url
sed -i "s@SHA1TOCHANGE@$SHA1@g" ../sources/source_md5
sudo wget -nv -i ../sources/source_url -O Z-Push-contrib-${SHA1}.zip
SFILE=`sudo cat ../sources/source_file`;
sudo wget -nv -i ../sources/source_url -O $SFILE
sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false)
sudo unzip Z-Push-contrib-${SHA1}.zip -d ../sources/
sudo cp -R ../sources/Z-Push-contrib-${SHA1}/* $final_path
sudo tar xvf $SFILE -d ../sources/
sudo cp -R ../sources/$SFILE/* $final_path
# Configuration
sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" ../conf/config.php

View file

@ -59,13 +59,11 @@ sudo rm -f $final_phpconf
sudo mkdir -p $final_path
# We download the sources and check the md5sum
SHA1=`sudo cat ../sources/source_sha1`;
sed -i "s@SHA1TOCHANGE@$SHA1@g" ../sources/source_url
sed -i "s@SHA1TOCHANGE@$SHA1@g" ../sources/source_md5
sudo wget -nv -i ../sources/source_url -O Z-Push-contrib-${SHA1}.zip
SFILE=`sudo cat ../sources/source_file`;
sudo wget -nv -i ../sources/source_url -O $SFILE
sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false)
sudo unzip Z-Push-contrib-${SHA1}.zip -d ../sources/
sudo cp -R ../sources/Z-Push-contrib-${SHA1}/* $final_path
sudo tar xvf $SFILE -d ../sources/
sudo cp -R ../sources/$SFILE/* $final_path
# Configuration
sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" ../conf/config.php