mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
feat(level 3): add new port setter in upgrade
This commit is contained in:
parent
dc1278c60a
commit
a49c6c50ce
1 changed files with 9 additions and 1 deletions
|
@ -18,10 +18,18 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
|
||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port) #TODO: update port for 8095 one
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
port_wg=$(ynh_app_setting_get --app=$app --key=port_wg)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
|
||||
# Change port for WireGuard UI because 8095 is default port for WireGuard VPN
|
||||
if [ $port -eq 8095 ]
|
||||
then
|
||||
ynh_app_setting_delete --app=$app --key=port
|
||||
port=$(ynh_find_port --port=8096)
|
||||
ynh_app_setting_set --app=$app --key=port --value=$port
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue