From 2fe4a18b830435469e617a6d90cf4c74308a8c0d Mon Sep 17 00:00:00 2001 From: Olivier BILHAUT Date: Mon, 29 Jan 2018 16:10:24 +0100 Subject: [PATCH] Local download --- manifest.json | 4 ++-- scripts/install | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index fd46543..485c3d5 100644 --- a/manifest.json +++ b/manifest.json @@ -13,13 +13,13 @@ "url": "https://github.com/scith" }, "requirements": { - "yunohost": ">> 2.4.0" + "yunohost": ">> 2.7.0" }, "multi_instance": true, "services": [ "nginx", "php5-fpm", - "mysql" + "mysql" ], "arguments": { "install" : [ diff --git a/scripts/install b/scripts/install index dd1b331..2a2ab96 100644 --- a/scripts/install +++ b/scripts/install @@ -80,9 +80,10 @@ ynh_webpath_register $app $domain $path_url src_path=/var/www/$app sudo mkdir -p $src_path - # Download, unzip and copy source - sudo wget -q https://github.com/Dolibarr/dolibarr/archive/${version}.zip -O dolibarr-${version}.zip - sudo unzip -qq dolibarr-${version}.zip || ynh_die "Problem uncompressing dolibarr zip file" + # Download, unzip and copy source - TODO in local (temporarily) to speed up test process + sudo wget -q ftp://srvnas.fhm.local/COMMUNS/INFORMATIQUE/dolibarr/dolibarr-6.0.4.zip -O dolibarr-${version}.zip + #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