From f23158c6d8c9ef4fbdc76dcc686e07915960d7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 7 Jul 2023 14:13:46 +0200 Subject: [PATCH] fix --- scripts/install | 3 +++ scripts/upgrade | 1 + 2 files changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 16f881e..6e94580 100755 --- a/scripts/install +++ b/scripts/install @@ -7,6 +7,7 @@ #================================================= source _common.sh +source ynh_install_go source /usr/share/yunohost/helpers #================================================= @@ -32,6 +33,8 @@ pushd $install_dir ynh_exec_warn_less ynh_exec_as $app CGO_ENABLED=0 $ynh_go build -o $install_dir/ popd +ynh_remove_go + chmod +x "$install_dir/server" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index ea3aac9..0d4c9b4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -7,6 +7,7 @@ #================================================= source _common.sh +source ynh_install_go source /usr/share/yunohost/helpers #=================================================