From 0012c8c8255a06fe32592bd11f9d06bb2eacc18d 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 13:55:48 +0200 Subject: [PATCH] Update install --- scripts/install | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/install b/scripts/install index 9a02b55..d0b1e5e 100755 --- a/scripts/install +++ b/scripts/install @@ -28,6 +28,18 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config +#================================================= +# BUILD APP +#================================================= +ynh_script_progression --message="Building app..." --weight=1 + +ynh_exec_warn_less ynh_install_go --go_version=$go_version +ynh_use_go + +pushd $install_dir + ynh_exec_warn_less ynh_exec_as $app CGO_ENABLED=0 $ynh_go build -o $install_dir/ +popd + #================================================= # CREATE FIRST ADMIN USER #=================================================