From 14b4b6091f3b9a7666ae134cb41617611bdf0ba4 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 23 Sep 2021 21:13:59 +0200 Subject: [PATCH] Ensure new permissions are tested upon upgrade --- scripts/upgrade | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 31fbcc9..f8728c9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,7 +68,7 @@ if ynh_permission_exists --permission="admin"; then # Create ui permission, for the dashboard ynh_permission_create --permission="ui" --url="/ui" --show_tile=true # Create endpoints permission - ynh_permission_create --permission="endpoints" --url="/" --allowed="visitors" --show_tile=false + ynh_permission_create --permission="endpoints" --url="/" --show_tile=false fi # Flows were stored in file named after the hostname. @@ -157,6 +157,11 @@ ynh_add_nginx_config # Set up the settings file 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 #=================================================