1
0
Fork 0
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:
tituspijean 2021-09-23 21:13:59 +02:00
parent ae77da4654
commit 14b4b6091f

View file

@ -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
#=================================================