1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00

Local download

This commit is contained in:
Olivier BILHAUT 2018-01-29 16:10:24 +01:00 committed by Jeff
parent 2d5850ca09
commit 2fe4a18b83
2 changed files with 6 additions and 5 deletions

View file

@ -13,7 +13,7 @@
"url": "https://github.com/scith" "url": "https://github.com/scith"
}, },
"requirements": { "requirements": {
"yunohost": ">> 2.4.0" "yunohost": ">> 2.7.0"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [

View file

@ -80,9 +80,10 @@ ynh_webpath_register $app $domain $path_url
src_path=/var/www/$app src_path=/var/www/$app
sudo mkdir -p $src_path sudo mkdir -p $src_path
# Download, unzip and copy source # Download, unzip and copy source - TODO in local (temporarily) to speed up test process
sudo wget -q https://github.com/Dolibarr/dolibarr/archive/${version}.zip -O dolibarr-${version}.zip sudo wget -q ftp://srvnas.fhm.local/COMMUNS/INFORMATIQUE/dolibarr/dolibarr-6.0.4.zip -O dolibarr-${version}.zip
sudo unzip -qq dolibarr-${version}.zip || ynh_die "Problem uncompressing dolibarr zip file" #sudo wget -q https://github.com/Dolibarr/dolibarr/archive/${version}.zip -O dolibarr-${version}.zip
unzip -qq dolibarr-${version}.zip || ynh_die "Problem uncompressing dolibarr zip file"
sudo cp -a dolibarr-${version}/. $src_path sudo cp -a dolibarr-${version}/. $src_path