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:
parent
78502e90d1
commit
95f7ad1bed
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue