1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoprism_ynh.git synced 2024-09-03 19:56:41 +02:00

Update install

This commit is contained in:
Limezy 2022-06-04 01:32:47 +07:00
parent 13c6783ff1
commit 82ca1e43ac

View file

@ -129,16 +129,16 @@ ynh_add_nginx_config
pushd "$final_path"
git init
# Setup nodejs and npm
ynh_use_nodejs
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install 2>&1
# Setup go exe and environnement
ynh_use_go
export GOPATH="$final_path/go"
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
make all install DESTDIR=$final_path/build 2>&1
ynh_exec_as $app env $ynh_node_load_PATH make all install DESTDIR=$final_path/build 2>&1
ynh_secure_remove --file="$final_path/go"
popd