diff --git a/scripts/install b/scripts/install index cda43e7..563b3cd 100755 --- a/scripts/install +++ b/scripts/install @@ -117,10 +117,13 @@ 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/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 d66bc20..442bb03 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,10 +99,13 @@ 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/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