From 46e0485dba9d123f98a587682c79dc44806357ee Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Thu, 16 Apr 2020 02:26:39 +0200 Subject: [PATCH] helper to install_extra golang-1.11 --- scripts/install | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 89bb779..0f9ad30 100755 --- a/scripts/install +++ b/scripts/install @@ -8,7 +8,7 @@ source _common.sh #source /opt/yunohost/mautrix-whatsapp/_ynh_install_extra_app_dependencies -#source _ynh_install_extra_app_dependencies +source _ynh_install_extra_app_dependencies source /usr/share/yunohost/helpers #================================================= @@ -126,7 +126,7 @@ ynh_script_progression --message="Installing dependencies..." --time --weight=1 ### - As well as the section "REINSTALL DEPENDENCIES" in the restore script ### - And the section "UPGRADE DEPENDENCIES" in the upgrade script -#ynh_install_extra_app_dependencies --repo="http://http.debian.net/debian stretch-backports main" --package="golang-1.11" +ynh_install_extra_app_dependencies --repo="http://http.debian.net/debian stretch-backports main" --package="golang-1.11" #ynh_install_extra_app_dependencies --repo="http://http.debian.net/debian $(lsb_release -sc)" --package="golang-1.11" ynh_install_app_dependencies $pkg_dependencies @@ -135,11 +135,11 @@ ynh_install_app_dependencies $pkg_dependencies # INSTALL GO #================================================= -type /usr/lib/go-$GO_VERSION/bin/go > /dev/null || { - ynh_script_progression --message="Installing go..." --time --weight=1 - wget https://dl.google.com/go/go$GO_VERSION.linux-$architecture.tar.gz -q - tar -C /usr/lib -xzf go$GO_VERSION.linux-$architecture.tar.gz -} +#type /usr/lib/go-$GO_VERSION/bin/go > /dev/null || { +# ynh_script_progression --message="Installing go..." --time --weight=1 +# wget https://dl.google.com/go/go$GO_VERSION.linux-$architecture.tar.gz -q +# tar -C /usr/lib -xzf go$GO_VERSION.linux-$architecture.tar.gz +#} export PATH=$PATH:/usr/lib/go-$GO_VERSION/bin #=================================================