mirror of
https://github.com/YunoHost-Apps/syncserver-rs_ynh.git
synced 2024-09-03 20:26:32 +02:00
Fix ynh_use_go usage.
This commit is contained in:
parent
7cedf5ab13
commit
fb5445d094
1 changed files with 3 additions and 4 deletions
|
@ -19,7 +19,7 @@ salt=$(ynh_string_random --length=40)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=10
|
ynh_script_progression --message="Installing dependencies..." --weight=10
|
||||||
ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION
|
ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION
|
||||||
trap "ynh_remove_go" EXIT
|
#trap "ynh_remove_go" EXIT
|
||||||
export GOPATH="$install_dir/build/go"
|
export GOPATH="$install_dir/build/go"
|
||||||
export GOCACHE="$install_dir/build/.cache"
|
export GOCACHE="$install_dir/build/.cache"
|
||||||
|
|
||||||
|
@ -49,15 +49,14 @@ chown -R $app:www-data "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Building the sources (it will take some time)..." --weight=10
|
ynh_script_progression --message="Building the sources (it will take some time)..." --weight=10
|
||||||
|
|
||||||
ynh_exec_as $app python -m venv "${install_dir}/venv"
|
ynh_use_go
|
||||||
|
|
||||||
|
ynh_exec_as $app python -m venv "${install_dir}/venv"
|
||||||
(
|
(
|
||||||
set +o nounset
|
set +o nounset
|
||||||
source "${install_dir}/venv/bin/activate"
|
source "${install_dir}/venv/bin/activate"
|
||||||
set -o nounset
|
set -o nounset
|
||||||
|
|
||||||
ynh_use_go
|
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH pip install --upgrade pip
|
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH pip install --upgrade pip
|
||||||
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH pip install --upgrade setuptools
|
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH pip install --upgrade setuptools
|
||||||
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH GOPATH=$GOPATH GOCACHE=$GOCACHE CGO_ENABLED=1 pip install -r requirements.txt
|
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH GOPATH=$GOPATH GOCACHE=$GOCACHE CGO_ENABLED=1 pip install -r requirements.txt
|
||||||
|
|
Loading…
Add table
Reference in a new issue