mirror of
https://github.com/YunoHost-Apps/nodered_ynh.git
synced 2024-09-03 19:46:25 +02:00
cleaning
This commit is contained in:
parent
f2313216d9
commit
e25a31b123
2 changed files with 5 additions and 29 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue