mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
Implement GO_VERSION
This commit is contained in:
parent
d161928e4b
commit
c4b86c53ba
3 changed files with 6 additions and 3 deletions
|
@ -7,6 +7,8 @@
|
|||
# dependencies used by the app
|
||||
pkg_dependencies="git"
|
||||
|
||||
GO_VERSION="1.15"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
|
|
@ -79,7 +79,7 @@ ynh_exec_warn_less yunohost firewall allow TCP $sync_port
|
|||
ynh_script_progression --message="Installing dependencies..."
|
||||
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
ynh_install_go --go_version="1.15"
|
||||
ynh_install_go --go_version=$GO_VERSION
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
|
@ -114,8 +114,9 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
|||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
# ...
|
||||
# BUILDING SYNCTHING
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building Syncthing..."
|
||||
|
||||
pushd "$final_path/dev"
|
||||
ynh_use_go
|
||||
|
@ -124,6 +125,7 @@ popd
|
|||
|
||||
mv "$final_path/dev/bin/syncthing" "$final_path/syncthing"
|
||||
ynh_secure_remove --file="$final_path/dev"
|
||||
ynh_remove_go
|
||||
|
||||
#=================================================
|
||||
# CREATE SYNC DIRECTORY
|
||||
|
|
|
@ -49,7 +49,6 @@ ynh_remove_systemd_config
|
|||
ynh_script_progression --message="Removing dependencies..."
|
||||
|
||||
# Remove metapackage and its dependencies
|
||||
ynh_remove_go
|
||||
ynh_remove_app_dependencies
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue