1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dokuwiki_ynh.git synced 2024-09-03 18:26:20 +02:00

apply 'example_ynh' : move permission block

This commit is contained in:
Gofannon 2022-08-21 01:22:58 +02:00
parent 006211049d
commit ec68ea9c94

View file

@ -225,15 +225,16 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex
#=================================================
ynh_script_progression --message="Configuring permissions..." --weight=2
# Create the "admin" permission and add the "admin_user" to it
ynh_permission_create --permission "admin" --allowed "$admin_user"
# Make app public if necessary
if [ $is_public -eq 1 ]
then
ynh_permission_update --permission="main" --add="visitors"
fi
# Create the "admin" permission and add the "admin_user" to it
# More users can be added to the group from the YunoHost webadmin
ynh_permission_create --permission "admin" --allowed "$admin_user"
#=================================================
# RELOAD NGINX
#=================================================