From c7c3ce4704aabdc309316c84289fc318b1c200d0 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 6 Apr 2022 01:13:51 +0200 Subject: [PATCH] Fix bullseye --- scripts/_common.sh | 3 +++ scripts/install | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 78dbcc8..978d50c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -49,6 +49,9 @@ function set_go_vars { ynh_install_go --go_version=1.16 ynh_use_go + export GOPATH="$final_path/build/go" + export GOCACHE="$final_path/build/.cache" + go_shims_path=$goenv_install_dir/shims go_path_full="$go_shims_path":"$(sudo -u $app bash -c 'echo $PATH')" heif_lib_path="$final_path/local/lib":"$(sudo -u $app bash -c 'echo $LIBRARY_PATH')" diff --git a/scripts/install b/scripts/install index 6295af3..2acbb75 100755 --- a/scripts/install +++ b/scripts/install @@ -69,8 +69,6 @@ ynh_app_setting_set --app=$app --key=port --value=$port ynh_script_progression --message="Installing dependencies..." --weight=60 install_dependencies -set_go_vars -set_node_vars #================================================= # CREATE DEDICATED USER @@ -100,6 +98,9 @@ ynh_app_setting_set --app=$app --key=data_path --value=$data_path # Download, check integrity, uncompress and patch the source from app.src setup_sources +set_go_vars +set_node_vars + #================================================= # NGINX CONFIGURATION #=================================================