From e52feeb7987155d5d868cd386ec1f0b063ad82dc Mon Sep 17 00:00:00 2001 From: polytan02 Date: Wed, 15 Feb 2017 17:37:43 +0000 Subject: [PATCH] Download external sources --- scripts/install | 10 +++++----- sources/hubzilla-addons/source_file | 2 +- sources/hubzilla-addons/source_md5 | 2 +- sources/hubzilla/source_file | 2 +- sources/hubzilla/source_md5 | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 2c3f9671..98af2e2f 100755 --- a/scripts/install +++ b/scripts/install @@ -69,12 +69,12 @@ ynh_app_setting_set $app db_user $db_user # 1 - hubzilla hubzilla_file=`sudo cat ../sources/hubzilla/source_file`; sudo wget -nv -i ../sources/hubzilla/source_url -O $hubzilla_file -#sudo md5sum -c ../sources/hubzilla/source_md5 --status || (echo "Corrupt source" >&2 && false) +sudo md5sum -c ../sources/hubzilla/source_md5 --status || (echo "Corrupt source" >&2 && false) sudo unzip ${hubzilla_file} -d $final_path # 2 - Addons -addons_file=`sudo cat ../sources/addons/source_file`; -sudo wget -nv -i ../sources/addons/source_url -O $addons_file -#sudo md5sum -c ../sources/addons/source_md5 --status || (echo "Corrupt source" >&2 && false) +addons_file=`sudo cat ../sources/hubzilla-addons/source_file`; +sudo wget -nv -i ../sources/hubzilla-addons/source_url -O $addons_file +sudo md5sum -c ../sources/hubzilla-addons/source_md5 --status || (echo "Corrupt source" >&2 && false) sudo unzip ${addons_file} -d $final_path/addon # 3 - some extra folders sudo mkdir -p "${final_path}/store/[data]/smarty3" @@ -96,7 +96,7 @@ sudo sed -i "s/if the auto install failed, put a unique random string here/$(ynh sudo sed -i "s/ADMIN_EMAIL_REPLACE/$email/g" $final_path/.htconfig.php # Set www-data to owner -sudo chown -R www-data: $final_path +sudo chown -R www-data:www-data $final_path # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf diff --git a/sources/hubzilla-addons/source_file b/sources/hubzilla-addons/source_file index b488f339..25174889 100644 --- a/sources/hubzilla-addons/source_file +++ b/sources/hubzilla-addons/source_file @@ -1 +1 @@ -2.0.zip +hubzilla-addons-2.0.zip diff --git a/sources/hubzilla-addons/source_md5 b/sources/hubzilla-addons/source_md5 index 3f3b2ba5..586c2939 100644 --- a/sources/hubzilla-addons/source_md5 +++ b/sources/hubzilla-addons/source_md5 @@ -1 +1 @@ -a688dfd66d31674637106f8430ca1103 cops-1.0.1.zip +09278c5123db1bbb5546c659177ecce5 hubzilla-addons-2.0.zip diff --git a/sources/hubzilla/source_file b/sources/hubzilla/source_file index b488f339..f02c67d4 100644 --- a/sources/hubzilla/source_file +++ b/sources/hubzilla/source_file @@ -1 +1 @@ -2.0.zip +hubzilla-2.0.zip diff --git a/sources/hubzilla/source_md5 b/sources/hubzilla/source_md5 index 3f3b2ba5..322f7085 100644 --- a/sources/hubzilla/source_md5 +++ b/sources/hubzilla/source_md5 @@ -1 +1 @@ -a688dfd66d31674637106f8430ca1103 cops-1.0.1.zip +eb60bc48b04451af692af5ec4770066f hubzilla-2.0.zip