mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
Download external sources
This commit is contained in:
parent
4832dbf908
commit
8f9631a7e5
11 changed files with 19 additions and 6 deletions
|
@ -64,8 +64,21 @@ ynh_app_setting_set $app db_user $db_user
|
|||
# A revoir
|
||||
# Recuperer les sources a la volée
|
||||
#sudo rsync -va ../sources/ $final_path/
|
||||
#sudo mkdir -p "$final_path/store/[data]/smarty3"
|
||||
#sudo chmod -R 777 $final_path/store
|
||||
|
||||
# We download the sources and check the md5sum
|
||||
# 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 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)
|
||||
sudo unzip ${addons_file} -d $final_path/addon
|
||||
# 3 - some extra folders
|
||||
sudo mkdir -p "${final_path}/store/[data]/smarty3"
|
||||
sudo chmod -R 777 $final_path/store
|
||||
|
||||
# Import database schema
|
||||
sudo mysql -u$db_user -p$db_pwd $db_user < $final_path/install/schema_mysql.sql
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
cops-1.0.1.zip
|
|
@ -1 +0,0 @@
|
|||
https://github.com/seblucas/cops/releases/download/1.0.1/cops-1.0.1.zip
|
1
sources/hubzilla-addons/source_file
Normal file
1
sources/hubzilla-addons/source_file
Normal file
|
@ -0,0 +1 @@
|
|||
2.0.zip
|
1
sources/hubzilla-addons/source_url
Normal file
1
sources/hubzilla-addons/source_url
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/redmatrix/hubzilla-addons/archive/2.0.zip
|
1
sources/hubzilla/source_file
Normal file
1
sources/hubzilla/source_file
Normal file
|
@ -0,0 +1 @@
|
|||
2.0.zip
|
1
sources/hubzilla/source_url
Normal file
1
sources/hubzilla/source_url
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/redmatrix/hubzilla/archive/2.0.zip
|
|
@ -1 +0,0 @@
|
|||
cops-1.0.1.zip
|
|
@ -1 +0,0 @@
|
|||
https://github.com/seblucas/cops/releases/download/1.0.1/cops-1.0.1.zip
|
Loading…
Add table
Reference in a new issue