diff --git a/scripts/_common.sh b/scripts/_common.sh index 0b51192..8c1e149 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,6 +7,8 @@ NODEJS_VERSION=14 GO_VERSION="1.17" +pkg_dependencies="npm" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index e54f180..a7e11e1 100755 --- a/scripts/install +++ b/scripts/install @@ -76,7 +76,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= ynh_script_progression --message="Installing dependencies..." --time --weight=1 -#ynh_install_app_dependencies $pkg_dependencies +ynh_install_app_dependencies $pkg_dependencies # Install nodejs ynh_install_nodejs --nodejs_version=$NODEJS_VERSION 2>&1 @@ -135,10 +135,8 @@ pushd "$final_path" export GOCACHE="$final_path/go/.cache" export GOBIN=$GOPATH/bin # Setup nodejs and npm - ynh_use_nodejs - ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install 2>&1 # Build server from source - ynh_exec_as root env $ynh_node_load_PATH make all install DESTDIR=$final_path/build 2>&1 + make all install DESTDIR=$final_path/build 2>&1 ynh_secure_remove --file="$final_path/go" popd