1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ifconfig-io_ynh.git synced 2024-09-03 20:36:27 +02:00

Fix: upgrade script

This commit is contained in:
Fabian Wilkens 2022-04-30 16:24:05 +02:00
parent 78502e90d1
commit 95f7ad1bed
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB

View file

@ -19,6 +19,8 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
app_path=$(ynh_app_setting_get --app=$app --key=app_path)
port=$(ynh_app_setting_get --app=$app --key=port)
#=================================================
# CHECK VERSION
@ -102,7 +104,15 @@ ynh_install_app_dependencies $pkg_dependencies
#=================================================
# SPECIFIC UPGRADE
#=================================================
# ...
export GOPATH=$HOME/go
export GO111MODULE=on
pushd "$app_path"
ynh_exec_warn_less go mod download
ynh_exec_warn_less go build
popd
#=================================================
#=================================================