From e25a31b123d6eb4067672e354ecbaa05e6ad2fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 18 Oct 2023 15:21:15 +0200 Subject: [PATCH] cleaning --- manifest.toml | 5 ++++- scripts/install | 29 +---------------------------- 2 files changed, 5 insertions(+), 29 deletions(-) diff --git a/manifest.toml b/manifest.toml index 1d00fec..f8f691a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -53,4 +53,7 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" - admin.url="/admin" + main.show_tile = true + main.allowed = "admins" + ui.url = "/ui" + ui.show_tile= true diff --git a/scripts/install b/scripts/install index 74563ec..80e23f1 100755 --- a/scripts/install +++ b/scripts/install @@ -37,7 +37,7 @@ ynh_add_nginx_config #================================================= # Install through npm #================================================= -ynh_script_progression --message="Installing Node-RED..." --weight=5 +ynh_script_progression --message="Installing $app..." --weight=5 ynh_use_nodejs chown -R $app: "$install_dir" @@ -90,33 +90,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=3 # Start a systemd service ynh_systemd_action --service_name=$app --action="start" -#================================================= -# SETUP SSOWAT -#================================================= -#REMOVEME? ynh_script_progression --message="Configuring permissions..." --weight=1 - -# The "main" permission is automatically created before the install script. -# Here we use it for the endpoints root, they should be world-accessible by default -# Since it is meant for automated actions, we hide the tile from the SSO -#REMOVEME? ynh_permission_create --permission="endpoints" --url="/" --show_tile=false - -# Create the dashboard UI permission -#REMOVEME? ynh_permission_create --permission="ui" --url="/ui" --show_tile=true - -# Reuse the main permission for the admin -#ynh_permission_url --permission="main" --url="/admin" -#REMOVEME? ynh_permission_update --permission="main" --add="$admin" --remove="all_users" --show_tile=true - -# Make the dashboard public if necessary -#REMOVEME? if [ $is_public -eq 1 ] -#then -#REMOVEME? ynh_permission_update --permission="ui" --add="visitors" -#REMOVEME? ynh_permission_update --permission="endpoints" --add="visitors" -#else -#REMOVEME? ynh_permission_update --permission="ui" --add="$admin" -#REMOVEME? ynh_permission_update --permission="endpoints" --add="$admin" -#fi - #================================================= # END OF SCRIPT #=================================================