mirror of
https://github.com/YunoHost-Apps/nodered_ynh.git
synced 2024-09-03 19:46:25 +02:00
Ensure new permissions are tested upon upgrade
This commit is contained in:
parent
ae77da4654
commit
14b4b6091f
1 changed files with 6 additions and 1 deletions
|
@ -68,7 +68,7 @@ if ynh_permission_exists --permission="admin"; then
|
||||||
# Create ui permission, for the dashboard
|
# Create ui permission, for the dashboard
|
||||||
ynh_permission_create --permission="ui" --url="/ui" --show_tile=true
|
ynh_permission_create --permission="ui" --url="/ui" --show_tile=true
|
||||||
# Create endpoints permission
|
# Create endpoints permission
|
||||||
ynh_permission_create --permission="endpoints" --url="/" --allowed="visitors" --show_tile=false
|
ynh_permission_create --permission="endpoints" --url="/" --show_tile=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Flows were stored in file named after the hostname.
|
# Flows were stored in file named after the hostname.
|
||||||
|
@ -157,6 +157,11 @@ ynh_add_nginx_config
|
||||||
# Set up the settings file
|
# Set up the settings file
|
||||||
ynh_add_config --template="../conf/settings.js" --destination="$final_path/data/settings.js"
|
ynh_add_config --template="../conf/settings.js" --destination="$final_path/data/settings.js"
|
||||||
|
|
||||||
|
# Small hack to have the "/" path answer with a 200 code to satisfy the CI
|
||||||
|
if [[ "${PACKAGE_CHECK_EXEC:-}" = "1" ]] ; then
|
||||||
|
ynh_add_config --template="../conf/flows.json" --destination="$final_path/data/flows.json"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP LOGROTATE
|
# SETUP LOGROTATE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue