From 4087db3870683a30f9d142d65fb9406686de123f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 3 Apr 2022 04:39:11 +0200 Subject: [PATCH 1/2] Fix bullseye --- scripts/install | 2 ++ scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index cda43e7..a314bfa 100755 --- a/scripts/install +++ b/scripts/install @@ -117,6 +117,8 @@ ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION pushd "$final_path" # Setup go exe and environnement ynh_use_go + export GOPATH="$final_path/go" + export GOCACHE="$final_path/.cache" # Build server from source make build 2>&1 # Setup a nice Yunohost logo diff --git a/scripts/upgrade b/scripts/upgrade index d66bc20..cd94e68 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,6 +99,8 @@ ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION pushd "$final_path" # Setup go exe and environnement ynh_use_go + export GOPATH="$final_path/go" + export GOCACHE="$final_path/.cache" # Build server from source make build 2>&1 # Setup a nice Yunohost logo From f07a5b1fdca18b0846fb5bb66a4cc526043a4c7d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 3 Apr 2022 13:31:33 +0200 Subject: [PATCH 2/2] improving go --- scripts/install | 3 ++- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index a314bfa..563b3cd 100755 --- a/scripts/install +++ b/scripts/install @@ -118,11 +118,12 @@ pushd "$final_path" # Setup go exe and environnement ynh_use_go export GOPATH="$final_path/go" - export GOCACHE="$final_path/.cache" + export GOCACHE="$final_path/go/.cache" # Build server from source make build 2>&1 # Setup a nice Yunohost logo cp /usr/share/yunohost/admin/img/logo.08bab97e.png web/themes/light/logo.png + ynh_secure_remove --file="$final_path/go" popd ynh_remove_go diff --git a/scripts/upgrade b/scripts/upgrade index cd94e68..442bb03 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,11 +100,12 @@ pushd "$final_path" # Setup go exe and environnement ynh_use_go export GOPATH="$final_path/go" - export GOCACHE="$final_path/.cache" + export GOCACHE="$final_path/go/.cache" # Build server from source make build 2>&1 # Setup a nice Yunohost logo cp /usr/share/yunohost/admin/img/logo.08bab97e.png web/themes/light/logo.png + ynh_secure_remove --file="$final_path/go" popd ynh_remove_go