From 16958f774fcd6f7ae472c1a5b46b61f22d1a1377 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 23 Jul 2022 05:05:47 +0200 Subject: [PATCH] Few fixes --- scripts/install | 2 +- scripts/remove | 1 + scripts/upgrade | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index fb436dc..77b391e 100755 --- a/scripts/install +++ b/scripts/install @@ -95,7 +95,7 @@ ynh_script_progression --message="Installing dependencies..." if [ "$node_type" == "client" ] then ynh_install_app_dependencies $client_pkg_dependencies - ynh_install_go --go_version=$go_version + ynh_exec_warn_less ynh_install_go --go_version=$go_version fi ynh_install_extra_app_dependencies --repo="deb https://apt.releases.hashicorp.com $(lsb_release -cs) main" --package="$pkg_dependencies" --key="https://apt.releases.hashicorp.com/gpg" diff --git a/scripts/remove b/scripts/remove index 1d1a119..7ca4c2f 100755 --- a/scripts/remove +++ b/scripts/remove @@ -7,6 +7,7 @@ #================================================= source _common.sh +source ynh_install_go source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9fcf541..653acb4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -86,7 +86,7 @@ ynh_script_progression --message="Upgrading dependencies..." if [ "$node_type" == "client" ] then ynh_install_app_dependencies $client_pkg_dependencies - ynh_install_go --go_version=$go_version + ynh_exec_warn_less ynh_install_go --go_version=$go_version fi ynh_install_extra_app_dependencies --repo="deb https://apt.releases.hashicorp.com $(lsb_release -cs) main" --package="$pkg_dependencies" --key="https://apt.releases.hashicorp.com/gpg" @@ -116,7 +116,7 @@ then ynh_use_go export GOPATH="$tempdir/go" export GOCACHE="$tempdir/.cache" - ynh_exec_warn_less$ynh_go build + ynh_exec_warn_less $ynh_go build popd mv -f $tempdir/nomad-driver-lxc $datadir/plugins/nomad-driver-lxc