diff --git a/scripts/install b/scripts/install index 3f5bb61..6132685 100755 --- a/scripts/install +++ b/scripts/install @@ -65,6 +65,8 @@ ynh_script_progression --message="Building lxd from sources..." --weight=60 pushd ${lxd_tmp} +export HOME=${HOME:-"/root/"} + ynh_exec_warn_less make deps export CGO_CFLAGS="-I${GOPATH}/raft/include/ -I${GOPATH}/dqlite/include/" export CGO_LDFLAGS="-L${GOPATH}/raft/.libs -L${GOPATH}/dqlite/.libs/" diff --git a/scripts/upgrade b/scripts/upgrade index a2d5df6..58a2519 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,6 +81,8 @@ ynh_script_progression --message="Building lxd from sources..." --weight=60 pushd ${lxd_tmp} +export HOME=${HOME:-"/root/"} + ynh_exec_warn_less make deps export CGO_CFLAGS="-I${GOPATH}/raft/include/ -I${GOPATH}/dqlite/include/" export CGO_LDFLAGS="-L${GOPATH}/raft/.libs -L${GOPATH}/dqlite/.libs/"