mirror of
https://github.com/YunoHost-Apps/domoticz_ynh.git
synced 2024-09-03 18:26:17 +02:00
add api_path
This commit is contained in:
parent
3ac63b4c61
commit
a4208525c8
1 changed files with 2 additions and 1 deletions
|
@ -97,6 +97,7 @@ then
|
|||
# Set global variables for nginx helper
|
||||
domain="$old_domain"
|
||||
path_url="$new_path"
|
||||
api_path="$new_api"
|
||||
# Create a dedicated nginx config
|
||||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config "api_path"
|
||||
|
@ -128,7 +129,7 @@ ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1
|
|||
# If the app is private, API should stays publicly accessible.
|
||||
ynh_app_setting_delete --app=$app --key="api_path"
|
||||
ynh_app_setting_set --app=$app --key="api_path" --value=$new_api
|
||||
ynh_permission_url --permission="domoticz_API" --url="$new_domain$new_api" --allowed="visitors"
|
||||
ynh_permission_url --permission domoticz_API --url "$new_domain$new_api"
|
||||
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue